Function at 0x415b90
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x460601
push eax
mov dword fs:[0], esp
mov eax, 0x1138
push ebx
call fcn.0045e770
xorps xmm0, xmm0
push esi
mov esi, ecx
movlpd qword [ebp - 0x50], xmm0
mov ecx, dword [ebx + 8]
push edi
movdqu xmmword [ebp - 0x48], xmm0
movdqu xmmword [ebp - 0x38], xmm0
movq qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x18], xmm0
call fcn.0040d390
mov edi, dword [ebp - 0x14]
mov ecx, 0x10000
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x14], eax
mov edi, edi
lea eax, [ebp - 0x50]
push eax
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
cmp eax, 0xc000000d
je 0x415e5c
cmp eax, 0xc0000022
je 0x415e5c
test eax, eax
jne 0x415e36
cmp dword [ebp - 0x30], 0x1000
jne 0x415e36
mov eax, dword [ebp - 0x40]
cmp eax, 1
je 0x415e36
test eax, 0x100
jne 0x415e36
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jne 0x415c62
cmp edi, dword [ebp - 0x44]
je 0x415e36
lea ecx, [ebp - 0x98]
call fcn.0040c910
push 0
push 0x1000
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1148]
mov eax, dword [esi]
push ecx
push dword [ebp - 0x44]
mov ecx, esi
push dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x415e24
mov eax, dword [ebp - 0x110c]
lea ecx, [ebp - 0x1148]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x1148], cx
jne 0x415e24
cmp dword [eax], 0x4550
jne 0x415e24
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x415cdc
mov dword [ebp - 0x5c], 0
jmp 0x415ced
mov edx, 0x20b
cmp cx, dx
jne 0x415cf3
mov dword [ebp - 0x5c], 1
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x44]
lea edi, [ebp - 0x1148]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x48]
push 0x1000
push edi
push 2
push eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], eax
mov eax, dword [edx + 0x14]
push ecx
mov ecx, esi
mov byte [ebp - 0x58], 0
call eax
test eax, eax
jne 0x415db1
cmp byte [esi + 0xe], 1
lea ecx, [ebp - 0xc8]
jne 0x415d47
push dword [ebp - 0x1144]
call fcn.004032d0
mov byte [ebp - 4], 1
jmp 0x415d56
push dword [ebp - 0x1140]
call fcn.004032d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xb0]
call fcn.0041d910
push eax
lea ecx, [ebp - 0x78]
call fcn.0040caa0
lea ecx, [ebp - 0xb0]
call fcn.00403330
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.00403330
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xb0]
call fcn.0041d440
push eax
lea ecx, [ebp - 0x90]
call fcn.0040caa0
lea ecx, [ebp - 0xb0]
call fcn.00403330
jmp 0x415e0c
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push eax
call fcn.0045e0c2
push dword [ebp - 0x94]
lea eax, [ebp - 0x148]
push dword [ebp - 0x98]
push str.Unknown_0x_I64x
push eax
call dword [0x46b690]
add esp, 0x1c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x78]
push eax
call fcn.004073f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x90]
call fcn.00403a10
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x98]
push eax
call fcn.00415e80
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c030
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x34]
adc edx, dword [ebp - 0x4c]
cmp edx, 0x7fff
jb 0x415c00
ja 0x415e5c
cmp ecx, 0xfffeffff
jb 0x415c00
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [eax + 4]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4