Function at 0x495820
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 0x4fb921
push eax
mov dword fs:[0], esp
mov eax, 0x1138
push ebx
call fcn.004ea940
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.0048b7f0
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 0x495aec
cmp eax, 0xc0000022
je 0x495aec
test eax, eax
jne 0x495ac6
cmp dword [ebp - 0x30], 0x1000
jne 0x495ac6
mov eax, dword [ebp - 0x40]
cmp eax, 1
je 0x495ac6
test eax, 0x100
jne 0x495ac6
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jne 0x4958f2
cmp edi, dword [ebp - 0x44]
je 0x495ac6
lea ecx, [ebp - 0x98]
call fcn.0047cce0
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 0x495ab4
mov eax, dword [ebp - 0x110c]
lea ecx, [ebp - 0x1148]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x1148], cx
jne 0x495ab4
cmp dword [eax], 0x4550
jne 0x495ab4
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x49596c
mov dword [ebp - 0x5c], 0
jmp 0x49597d
mov edx, 0x20b
cmp cx, dx
jne 0x495983
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 0x495a41
cmp byte [esi + 0xe], 1
lea ecx, [ebp - 0xc8]
jne 0x4959d7
push dword [ebp - 0x1144]
call fcn.0046b820
mov byte [ebp - 4], 1
jmp 0x4959e6
push dword [ebp - 0x1140]
call fcn.0046b820
mov byte [ebp - 4], 2
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xb0]
call fcn.00480ba0
push eax
lea ecx, [ebp - 0x78]
call fcn.00478c00
lea ecx, [ebp - 0xb0]
call fcn.0046b210
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.0046b210
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xb0]
call fcn.004806e0
push eax
lea ecx, [ebp - 0x90]
call fcn.00478c00
lea ecx, [ebp - 0xb0]
call fcn.0046b210
jmp 0x495a9c
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push eax
call fcn.004d36e0
push dword [ebp - 0x94]
lea eax, [ebp - 0x148]
push dword [ebp - 0x98]
push str.Unknown_0x_I64x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0x78]
push eax
call fcn.004773c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x90]
call fcn.0046b300
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x98]
push eax
call fcn.00495b10
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.0047cd10
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x34]
adc edx, dword [ebp - 0x4c]
cmp edx, 0x7fff
jb 0x495890
ja 0x495aec
cmp ecx, 0xfffeffff
jb 0x495890
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