Function at 0x415800
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 0x4605cb
push eax
mov dword fs:[0], esp
mov eax, 0x10d8
push ebx
call fcn.0045e770
xorps xmm0, xmm0
push esi
mov esi, ecx
movlpd qword [ebp - 0x70], xmm0
mov ecx, dword [ebx + 8]
push edi
movdqu xmmword [ebp - 0x68], xmm0
movdqu xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x18], xmm0
call fcn.0040d390
mov eax, dword [ebp - 0x14]
mov ecx, 0x10000
mov edi, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
lea edi, [ebp - 0x70]
push edi
push edx
push ecx
mov eax, dword [eax + 0x18]
mov ecx, esi
call eax
mov edi, dword [ebp - 0x14]
cmp eax, 0xc000000d
je 0x415b69
cmp eax, 0xc0000022
je 0x415b69
test eax, eax
jne 0x415b43
cmp dword [ebp - 0x50], 0x1000
jne 0x415b43
cmp dword [ebp - 0x48], 0x1000000
jne 0x415b43
cmp edi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jne 0x4158cc
cmp dword [ebp - 0x1c], edi
je 0x415b43
push 0xfff
lea eax, [ebp - 0x10e7]
mov byte [ebp - 0x10e8], 0
push 0
push eax
call fcn.0045e0c2
mov eax, dword [esi]
lea ecx, [ebp - 0x8e8]
add esp, 0xc
mov eax, dword [eax + 0x14]
push 0x800
push ecx
push 2
push edi
push dword [ebp - 0x68]
mov ecx, esi
call eax
test eax, eax
js 0x415b37
lea ecx, [ebp - 0xe8]
call fcn.0040c910
push 0
push 0x800
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10e8]
mov eax, dword [esi]
push ecx
push dword [ebp - 0x64]
mov ecx, esi
push dword [ebp - 0x68]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x415956
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c030
jmp 0x415b43
mov eax, dword [ebp - 0x10ac]
lea ecx, [ebp - 0x10e8]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x10e8], cx
jne 0x4159c2
cmp dword [eax], 0x4550
jne 0x4159c2
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x4159a0
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0
jmp 0x415a63
mov edx, 0x20b
cmp cx, dx
jne 0x41593f
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 1
jmp 0x415a63
mov ecx, dword [ebp - 0x64]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x68]
movlpd qword [ebp - 0xa0], xmm0
movq qword [ebp - 0x78], xmm0
movdqu xmmword [ebp - 0x98], xmm0
movdqu xmmword [ebp - 0x88], xmm0
cmp ecx, 0x7fff
ja 0x415a59
jb 0x415a00
cmp eax, 0xfffeffff
jae 0x415a59
lea esp, [esp]
mov edx, dword [esi]
lea edi, [ebp - 0xa0]
push edi
push ecx
push eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
js 0x415a4a
cmp dword [ebp - 0x78], 0x1000000
jne 0x415a4a
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x84]
adc ecx, dword [ebp - 0x9c]
cmp ecx, 0x7fff
jb 0x415a00
ja 0x415a59
cmp eax, 0xfffeffff
jb 0x415a00
jmp 0x415a59
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 3
cmp byte [esi + 0xe], 1
lea ecx, [ebp - 0x34]
jne 0x415a7d
push dword [ebp - 0x8e4]
call fcn.004032d0
mov byte [ebp - 4], 1
jmp 0x415a8c
push dword [ebp - 0x8e0]
call fcn.004032d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x88]
call fcn.0041d910
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040caa0
lea ecx, [ebp - 0x88]
call fcn.00403330
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00403330
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x34]
call fcn.0041d440
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040caa0
cmp dword [ebp - 0x20], 8
jb 0x415ae9
push dword [ebp - 0x34]
call dword [0x46a2c4]
add esp, 4
mov ecx, dword [ebx + 8]
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe8]
push eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov byte [ebp - 0xa8], 0
call fcn.00415e80
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c030
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x54]
adc edx, dword [ebp - 0x6c]
cmp edx, 0x7fff
jb 0x415871
ja 0x415b69
cmp ecx, 0xfffeffff
jb 0x415871
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