Function at 0x495490
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 0x4fb8eb
push eax
mov dword fs:[0], esp
mov eax, 0x10d8
push ebx
call fcn.004ea940
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.0048b7f0
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 0x4957f8
cmp eax, 0xc0000022
je 0x4957f8
test eax, eax
jne 0x4957d2
cmp dword [ebp - 0x50], 0x1000
jne 0x4957d2
cmp dword [ebp - 0x48], 0x1000000
jne 0x4957d2
cmp edi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jne 0x49555c
cmp dword [ebp - 0x1c], edi
je 0x4957d2
push 0xfff
lea eax, [ebp - 0x10e7]
mov byte [ebp - 0x10e8], 0
push 0
push eax
call fcn.004d36e0
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 0x4957c6
lea ecx, [ebp - 0xe8]
call fcn.0047cce0
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 0x4955e6
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0047cd10
jmp 0x4957d2
mov eax, dword [ebp - 0x10ac]
lea ecx, [ebp - 0x10e8]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x10e8], cx
jne 0x495652
cmp dword [eax], 0x4550
jne 0x495652
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x495630
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0
jmp 0x4956f3
mov edx, 0x20b
cmp cx, dx
jne 0x4955cf
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 1
jmp 0x4956f3
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 0x4956e9
jb 0x495690
cmp eax, 0xfffeffff
jae 0x4956e9
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 0x4956da
cmp dword [ebp - 0x78], 0x1000000
jne 0x4956da
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x84]
adc ecx, dword [ebp - 0x9c]
cmp ecx, 0x7fff
jb 0x495690
ja 0x4956e9
cmp eax, 0xfffeffff
jb 0x495690
jmp 0x4956e9
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 0x49570d
push dword [ebp - 0x8e4]
call fcn.0046b820
mov byte [ebp - 4], 1
jmp 0x49571c
push dword [ebp - 0x8e0]
call fcn.0046b820
mov byte [ebp - 4], 2
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x88]
call fcn.00480ba0
push eax
lea ecx, [ebp - 0xc8]
call fcn.00478c00
lea ecx, [ebp - 0x88]
call fcn.0046b210
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0046b210
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x34]
call fcn.004806e0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00478c00
cmp dword [ebp - 0x20], 8
jb 0x495778
push dword [ebp - 0x34]
call fcn.004cd56c
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.00495b10
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.0047cd10
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 0x495501
ja 0x4957f8
cmp ecx, 0xfffeffff
jb 0x495501
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