Function at 0x439040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
push ebx
push esi
push edi
mov edi, edx
mov eax, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], eax
call fcn.00439510
mov ebx, eax
mov byte [ebp - 0x588], 0
push 0xff
lea eax, [ebp - 0x587]
mov dword [ebp - 0x14], ebx
push 0
push eax
call fcn.004220a0
add esp, 0xc
mov byte [ebp - 0x290], 0
lea eax, [ebp - 0x28f]
push 0xff
push 0
push eax
call fcn.004220a0
add esp, 0xc
mov byte [ebp - 0x190], 0
lea eax, [ebp - 0x18f]
push 0xff
push 0
push eax
call fcn.004220a0
add esp, 0xc
mov byte [ebp - 0x390], 0
lea eax, [ebp - 0x38f]
push 0xff
push 0
push eax
call fcn.004220a0
add esp, 0xc
mov byte [ebp - 0x688], 0
lea eax, [ebp - 0x687]
push 0xff
push 0
push eax
call fcn.004220a0
add esp, 0xc
test ebx, ebx
je 0x4394f6
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x90]
push 0
push 0x40
push eax
push ebx
push edi
call esi
test eax, eax
je 0x4394f6
mov eax, 0x5a4d
cmp word [ebp - 0x90], ax
jne 0x4394f6
push 0
push 0xf8
lea eax, [ebp - 0x488]
push eax
mov eax, dword [ebp - 0x54]
add eax, ebx
push eax
push edi
call esi
test eax, eax
je 0x4394f6
cmp dword [ebp - 0x488], 0x4550
jne 0x4394f6
movdqu xmm0, xmmword [ebp - 0x90]
sub esp, 0xf8
lea esi, [ebp - 0x488]
mov edi, esp
mov ecx, 0x3e
sub esp, 0x40
mov edx, ebx
mov eax, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp - 0x80]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x70]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x60]
movdqu xmmword [eax + 0x30], xmm0
lea eax, [ebp - 0x4c]
push eax
call fcn.004395e0
test eax, eax
je 0x4394f6
mov eax, dword [ebp - 0x38]
lea edi, [eax*4]
push edi
call fcn.004200d2
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [esi*4]
push ecx
call fcn.004200d2
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [esi + esi]
push ecx
call fcn.004200d2
mov ecx, dword [ebp - 0x30]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add ecx, ebx
mov dword [ebp - 4], eax
push 0
push edi
mov edi, dword [ebp + 8]
push edi
push ecx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x43921d
push edi
call fcn.0042009a
mov ebx, dword [ebp - 0xc]
add esp, 4
push ebx
jmp 0x4394e3
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0xc]
push 0
shl eax, 2
push eax
mov eax, dword [ebp - 0x2c]
push edi
add eax, ebx
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x4394d7
mov eax, dword [ebp - 0x34]
push 0
add eax, eax
push eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x28]
add eax, ebx
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x4394d7
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x40c]
add ecx, ebx
add eax, ecx
mov dword [ebp - 0x24], ecx
xor ebx, ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x34], ebx
jbe 0x4394d7
mov eax, dword [ebp + 8]
mov ecx, edi
sub eax, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
lea esp, [esp]
mov edi, dword [eax + ecx]
lea eax, [ebp - 0x588]
mov esi, dword [ecx]
add edi, dword [ebp - 0x14]
add esi, dword [ebp - 0x14]
push pe_nt_image_headers32
push 0
push eax
call fcn.004220a0
add esp, 0xc
lea eax, [ebp - 0x588]
push 0
push pe_nt_image_headers32
push eax
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call esi
test eax, eax
je 0x439325
push dword [ebp + 0xc]
lea eax, [ebp - 0x588]
push eax
call fcn.00438df3
add esp, 8
test eax, eax
jne 0x439325
cmp edi, dword [ebp - 0x24]
jb 0x439425
cmp edi, dword [ebp - 0x20]
ja 0x439425
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004220a0
add esp, 0xc
lea eax, [ebp - 0x290]
push 0
push pe_nt_image_headers32
push eax
push edi
mov edi, dword [ebp - 8]
push edi
call esi
test eax, eax
jne 0x439340
mov ecx, dword [ebp - 0x10]
inc ebx
add ecx, 4
mov dword [ebp - 0x10], ecx
cmp ebx, dword [ebp - 0x34]
jae 0x4394d4
mov eax, dword [ebp - 0x1c]
jmp 0x439290
push pe_nt_image_headers32
lea eax, [ebp - 0x190]
push 0
push eax
call fcn.004220a0
add esp, 0xc
lea eax, [ebp - 0x390]
push pe_nt_image_headers32
push 0
push eax
call fcn.004220a0
mov cl, byte [ebp - 0x290]
add esp, 0xc
xor eax, eax
cmp cl, 0x2e
je 0x439394
lea esp, [esp]
mov byte [ebp + eax - 0x190], cl
inc eax
mov cl, byte [ebp + eax - 0x290]
cmp cl, 0x2e
jne 0x439380
mov dl, byte [ebp + eax - 0x28f]
xor ecx, ecx
mov byte [ebp + eax - 0x18f], 0
lea eax, [ebp + eax - 0x28f]
test dl, dl
je 0x4393c1
mov byte [ebp + ecx - 0x390], dl
lea eax, [eax + 1]
mov dl, byte [eax]
inc ecx
test dl, dl
jne 0x4393b0
push str..dll
lea eax, [ebp - 0x190]
mov byte [ebp + ecx - 0x38f], 0
push pe_nt_image_headers32
push eax
call fcn.00438ecf
add esp, 0xc
push dword [ebp + 8]
call fcn.0042009a
mov ebx, dword [ebp - 0xc]
add esp, 4
push ebx
call fcn.0042009a
add esp, 4
push dword [ebp - 4]
call fcn.0042009a
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x390]
add esp, 4
mov edx, edi
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00439040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 4]
movzx ecx, word [esi + ebx*2]
cmp ecx, dword [ebp - 0x34]
jae 0x4394f6
cmp ecx, ebx
je 0x4394a9
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
push pe_nt_image_headers32
push 0
mov edi, dword [eax + ecx*4]
lea eax, [ebp - 0x688]
mov esi, dword [ebx + ecx*4]
add edi, dword [ebp - 0x14]
add esi, dword [ebp - 0x14]
push eax
call fcn.004220a0
add esp, 0xc
push dword [ebp + 8]
call fcn.0042009a
add esp, 4
push ebx
call fcn.0042009a
add esp, 4
push dword [ebp - 4]
call fcn.0042009a
add esp, 4
lea eax, [ebp - 0x688]
push 0
push pe_nt_image_headers32
push eax
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call esi
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call fcn.0042009a
mov ebx, dword [ebp - 0xc]
add esp, 4
push ebx
call fcn.0042009a
add esp, 4
push esi
call fcn.0042009a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0042009a
add esp, 4
push edi
call fcn.0042009a
add esp, 4
push dword [ebp - 4]
call fcn.0042009a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8