Function at 0x1003a46
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x10], esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
je 0x1003a82
push dword [ebp + 0x10]
call edi
test eax, eax
pop ecx
jne 0x1003a82
inc eax
jmp 0x1003f6e
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc], eax
je 0x1003a9e
push dword [ebp + 0x10]
call edi
shl eax, 1
pop ecx
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [ebp + 0x14], 0
je 0x1003aaf
push dword [ebp + 0x14]
call edi
shl eax, 1
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
lea edi, [eax + esi]
lea eax, [edi + 0x18]
push eax
push 8
push dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
mov dword [ebp - 0x20], edx
jne 0x1003afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
pop esi
push esi
push 0x74b
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003f66
cmp dword [ebp + 0xc], 4
je 0x1003c32
test esi, esi
lea edi, [edx + 0x18]
je 0x1003b20
mov word [edx + 4], si
movzx ecx, si
mov esi, dword [ebp + 0x10]
mov dword [edx], 0x18
jmp 0x1003b34
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 0x14]
mov dword [edx + 0x10], 0x18
mov word [edx + 0x14], ax
movzx ecx, ax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [edx + 4]
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20
lea eax, [ebp - 0x44]
push eax
movzx eax, word [edx + 0x14]
lea eax, [eax + ecx + 0x18]
push eax
push edx
push 0x6d0008
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
jne 0x1003bc2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xea
mov dword [ebp - 8], eax
je 0x1003b8b
cmp eax, 0x7a
je 0x1003b8b
cmp eax, 0x18
jne 0x1003bd3
push dword [ebp - 0x44]
mov dword [ebp - 8], edi
push 8
pop edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1003bd1
call esi
push eax
push edi
push 0x77c
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
mov dword [ebp - 8], edi
push edi
jmp 0x1003c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x78b
jmp 0x1003bae
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
push dword [ebp - 4]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 4]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
push 0x6d0008
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp - 0x10], edi
je 0x1003c06
cmp eax, edi
jne 0x1003c3a
call esi
push eax
call esi
push eax
push 0x798
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
call esi
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003f46
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003c3d
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1003ef5
jle 0x1003f46
cmp eax, 3
jle 0x1003d51
cmp eax, 4
jne 0x1003f46
add edi, 8
push edi
push 8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x14], edi
jne 0x1003ca2
call esi
push eax
push 8
pop esi
push esi
push 0x804
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003f26
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 8]
mov word [edi + 4], cx
mov cx, word [ebp - 0x18]
mov word [edi + 6], cx
mov word [edi + 2], ax
mov word [edi], 8
movzx ecx, ax
mov eax, ecx
shr ecx, 2
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [eax + 6]
movzx edi, word [eax + 4]
mov esi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
add edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
push ecx
lea edx, [ebp - 0x10]
push edx
movzx edx, word [eax + 6]
push ecx
push ecx
movzx ecx, word [eax + 2]
lea ecx, [ecx + edx + 8]
push ecx
push eax
push 0x6dc000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003f23
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x81c
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
call esi
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003f23
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
mov dword [ebp + 0x14], edx
jbe 0x1003dbc
lea edx, [ecx + 0xc]
mov dword [ebp + 0x10], edx
jmp 0x1003d6b
mov ecx, dword [ebp - 4]
mov ebx, dword [edx - 4]
add ebx, ecx
cmp dword [ebp + 0xc], 2
movzx ecx, word [edx]
jne 0x1003d91
cmp ecx, 0x18
jbe 0x1003db0
push 6
pop ecx
mov edi, 0x10019d4
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x1003dbc
mov edx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 3
jne 0x1003db0
movzx ecx, word [edx]
cmp ecx, 0x16
jbe 0x1003db0
push 0xb
mov esi, ebx
pop ecx
mov edi, 0x100166c
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
je 0x1003dbc
inc eax
add edx, 0x18
cmp eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], edx
jb 0x1003d68
cmp eax, dword [ebp + 0x14]
je 0x1003f46
mov ecx, dword [ebp - 4]
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8]
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x1c]
add eax, ecx
movzx ecx, word [esi + 0xc]
lea eax, [eax + ecx + 0x18]
push eax
push 8
pop edi
push edi
push dword [ebp - 0xc]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1003e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x7d9
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
mov dword [ebp - 8], edi
push edi
jmp 0x1003eed
mov dword [ebx], 0x18
mov ax, word [esi + 0xc]
mov word [ebx + 4], ax
mov esi, dword [esi + 8]
add esi, dword [ebp - 4]
movzx ecx, ax
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, word [ebx + 4]
add eax, dword [ebx]
push 0
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov cx, word [eax + 0x14]
mov edi, dword [ebx + 8]
mov word [ebx + 0xc], cx
mov esi, dword [eax + 0x10]
add esi, dword [ebp - 4]
movzx ecx, cx
mov edx, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebx + 0xc]
add ecx, dword [ebx + 8]
mov dword [ebx + 0x10], ecx
mov cx, word [eax + 0x1c]
mov edi, dword [ebx + 0x10]
mov word [ebx + 0x14], cx
mov esi, dword [eax + 0x18]
add esi, dword [ebp - 4]
movzx ecx, cx
mov eax, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x10]
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x44]
push dword [ebp - 4]
push dword [ebp + 0x14]
push ebx
push 0x6dc004
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003f36
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x7f8
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
call esi
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003f36
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov edi, dword [ebp + 0x14]
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, word [eax + 0x1c]
mov ecx, dword [ebp + 0x14]
shr eax, 1
and word [ecx + eax*2], 0
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x1003f46
push edi
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x1003f46
push ebx
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0
je 0x1003f66
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp dword [ebp - 8], eax
sete al
pop edi
pop esi
pop ebx
leave
ret 0x10