Function at 0x40c090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
xor eax, eax
mov dword [ebp - 0x10], ecx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0xcc], 0
push edi
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c679
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, esi
or eax, edi
je 0x40c679
mov eax, dword [0x46a2e0]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
xor eax, eax
mov byte [ebp - 4], 2
push 0x3e
push eax
mov word [ebp - 0x140], ax
lea eax, [ebp - 0x13e]
push eax
call fcn.0045e0c2
add esp, 0xc
mov byte [ebp - 0x248], 0
lea eax, [ebp - 0x247]
push 0x107
push 0
push eax
call fcn.0045e0c2
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xb0]
mov eax, dword fs:[0x18]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0xb0], xmm0
mov ecx, dword [ecx + 4]
mov dword [eax + 0xbf4], 0
push edx
push 0x40
mov eax, dword [ecx + 0x4c]
lea edx, [ebp - 0x140]
push edx
push edi
push esi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, 0x5a4d
cmp word [ebp - 0x140], ax
je 0x40c1c6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
call fcn.0040c740
lea ecx, [ebp - 0x68]
call fcn.00404240
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x104]
xorps xmm0, xmm0
cdq
mov esi, eax
movlpd qword [ebp - 0xa8], xmm0
mov eax, dword [ebp + 0xc]
add esi, dword [eax]
mov ecx, esi
adc edx, dword [eax + 4]
or ecx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 4]
mov eax, dword fs:[0x18]
jne 0x40c200
mov dword [eax + 0xbf4], 0xc0000141
jmp 0x40c230
mov dword [eax + 0xbf4], 0
mov eax, dword [edi + 0x4c]
lea edi, [ebp - 0xa8]
push edi
push pe_nt_image_headers32
lea edi, [ebp - 0x248]
mov ecx, dword [eax + 8]
push edi
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [ebx]
cmp dword [ebp - 0x248], 0x4550
jne 0x40c19d
mov ax, word [ebp - 0x230]
mov edx, 0x10b
mov esi, dword [ebp - 0x1c0]
cmp ax, dx
cmove esi, dword [ebp - 0x1d0]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40c657
mov ecx, dword [ebp - 0x1bc]
cmp ax, dx
cmove ecx, dword [ebp - 0x1cc]
push ecx
mov dword [ebp - 0x14], ecx
call dword [0x46a2e4]
mov edx, dword [ebp + 0xc]
mov edi, eax
push edi
push dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x20], edi
add ecx, dword [edx]
mov eax, 0
adc eax, dword [edx + 4]
push eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [eax + 4]
call fcn.00407990
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
sub eax, esi
add eax, edi
sub ecx, esi
mov dword [ebp - 0x9c], eax
add ecx, edi
mov eax, dword [edi + 0x1c]
sub eax, esi
mov dword [ebp - 0xa4], ecx
add eax, edi
xor esi, esi
mov dword [ebp - 0xac], eax
cmp dword [edi + 0x14], esi
jbe 0x40c65a
mov edx, dword [ebp + 0x10]
jmp 0x40c2e0
xor eax, eax
cmp edx, 0xffff
ja 0x40c2ef
movzx ecx, si
jmp 0x40c30a
cmp esi, dword [edi + 0x18]
jae 0x40c620
mov eax, dword [ebp - 0x9c]
movzx ecx, word [ecx + esi*2]
mov eax, dword [eax + esi*4]
sub eax, dword [ebp - 0x18]
add eax, edi
mov dword [ebp - 0x24], ecx
cmp edx, 0xffff
ja 0x40c4c5
movzx ecx, cx
add ecx, dword [edi + 0x10]
movzx eax, dx
cmp eax, ecx
jne 0x40c4f7
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x24]
movzx eax, ax
mov esi, dword [esi + eax*4]
mov eax, dword [edi + 4]
add esi, edx
mov edi, dword [ebp - 0x20]
adc ecx, eax
mov dword [ebp - 0x68], esi
add edx, dword [ebp - 0x18]
mov dword [ebp + 0x10], ecx
adc eax, 0
mov dword [ebp - 0x64], ecx
cmp ecx, eax
jb 0x40c65a
ja 0x40c36e
cmp esi, edx
jb 0x40c65a
mov edx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp - 0x14]
add edi, dword [edx]
mov dword [ebp - 0x14], edi
adc eax, dword [edx + 4]
mov edx, edi
add edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
adc eax, 0
cmp ecx, eax
ja 0x40c65a
jb 0x40c39b
cmp esi, edx
ja 0x40c65a
push 0xfe
lea eax, [ebp - 0x347]
mov byte [ebp - 0x348], 0
push 0
push eax
call fcn.0045e0c2
add esp, 8
lea eax, [ebp - 0x348]
push eax
push 0xff
push dword [ebp + 0x10]
push esi
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
call fcn.00407990
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403240
push ecx
push 0x54c7b4
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
call fcn.0040c9b0
push eax
push 0
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040c9f0
push str..dll
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 4
push eax
call fcn.0040d720
add esp, 0xc
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 6
call fcn.004032a0
push 0xffffffffffffffff
push ecx
push 0x54c7b8
lea ecx, [ebp - 0xc8]
call fcn.0040c9b0
inc eax
lea ecx, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040c9f0
push ecx
lea edx, [ebp - 0xe4]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.0041d370
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x2e], 1
call fcn.00403a10
push ecx
push 0x54c7bc
lea ecx, [ebp - 0x80]
call fcn.0040c9b0
test eax, eax
sete al
mov byte [ebp - 0x2d], al
test al, al
lea eax, [ebp - 0x80]
je 0x40c50c
cmp dword [ebp - 0x6c], 0x10
cmovae eax, dword [ebp - 0x80]
inc eax
push eax
call dword [0x46a360]
add esp, 4
mov word [ebp - 0x30], ax
jmp 0x40c519
mov ecx, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c4e7
test dl, dl
je 0x40c4e3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c4e7
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c4c7
xor eax, eax
jmp 0x40c4ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c32a
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xa4]
inc esi
cmp esi, dword [edi + 0x14]
jb 0x40c2e0
jmp 0x40c65a
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.00403390
push dword [ebp + 0x14]
xor eax, eax
mov ecx, 0x10b
cmp word [ebp - 0x230], cx
mov ecx, esi
setne al
push eax
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.0040bb70
mov edx, eax
test edx, edx
jne 0x40c57e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
call fcn.0040c740
lea ecx, [ebp - 0x98]
call fcn.00403330
lea ecx, [ebp - 0x80]
call fcn.004032a0
lea ecx, [ebp - 0xe4]
call fcn.004032a0
lea ecx, [ebp - 0xc8]
call fcn.004032a0
jmp 0x40c62c
cmp byte [ebp - 0x2d], 0
mov esi, dword [ebp + 8]
je 0x40c5fe
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
push eax
movzx eax, word [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
push eax
push edx
push esi
call fcn.0040c090
lea ecx, [ebp - 0x98]
call fcn.00403330
lea ecx, [ebp - 0x80]
call fcn.004032a0
lea ecx, [ebp - 0xe4]
call fcn.004032a0
lea ecx, [ebp - 0xc8]
call fcn.004032a0
mov byte [ebp - 4], 0
push edi
call dword [0x46a2e0]
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.00404240
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 0x84], 8
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x80]
cmovae ecx, dword [ebp - 0x98]
cmp dword [ebp - 0x6c], 0x10
push ecx
cmovae eax, dword [ebp - 0x80]
jmp 0x40c5a0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
call fcn.0040c740
push edi
mov byte [ebp - 4], 0
call dword [0x46a2e0]
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.00404240
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040c740
mov byte [ebp - 4], 0
test edi, edi
je 0x40c5e2
jmp 0x40c5d8
mov eax, dword fs:[0x18]
mov esi, dword [ebp + 8]
lea ecx, [esi + 8]
push 0xffffffffffffffff
mov dword [eax + 0xbf4], 0xc00000ef
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 4], eax
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x60]
push eax
call fcn.00403a10
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x48]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403390
cmp dword [ebp - 0x34], 0x10
mov ax, word [ebp - 0x30]
mov edi, dword [0x46a2c4]
mov word [esi + 0x38], ax
movzx eax, byte [ebp - 0x2e]
mov byte [esi + 0x3a], al
movzx eax, byte [ebp - 0x2d]
mov byte [esi + 0x3b], al
jb 0x40c708
push dword [ebp - 0x48]
call edi
add esp, 4
cmp dword [ebp - 0x4c], 8
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x40c728
push dword [ebp - 0x60]
call edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10