Function at 0x40dfc0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x30]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x50]
push ecx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], eax
call fcn.0040e410
add esp, 8
test eax, eax
je 0x40e3da
push 0x4000
mov dword [esp + 0x60], 0x4000
call fcn.004109c0
add esp, 4
cmp eax, ebp
mov dword [esp + 0x58], eax
jne 0x40e033
push 0x4164b0
push ebp
push 0x20e
push str.E:_build360BaseQHImageHlp.c
call fcn.004065f0
jmp 0x40e3d7
mov esi, dword [esp + 0x68]
lea edx, [esp + 0x30]
push edx
push 0x40
push esi
push ebp
push ebp
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
cmp word [esi], 0x5a4d
je 0x40e069
push 0x41774c
push 1
push 0x214
jmp 0x40e3cd
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x3c]
cdq
push 4
push ecx
push edx
push eax
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
cmp dword [esp + 0x1c], 0x4550
je 0x40e0a6
push 0x41774c
push 1
push 0x219
jmp 0x40e3cd
mov edi, dword [esi + 0x3c]
lea edx, [esp + 0x30]
push edx
xor ebx, ebx
push 0x14
add edi, 4
push esi
push ebx
push edi
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
lea eax, [esp + 0x30]
add edi, 0x14
push eax
lea ecx, [esp + 0x1c]
adc ebx, ebp
push 2
push ecx
push ebx
push edi
mov dword [esp + 0x40], ebx
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
mov eax, dword [esp + 0x18]
cmp ax, 0x10b
jne 0x40e123
mov ax, word [esi + 0x10]
cmp ax, 0x78
jae 0x40e114
push 0x41773c
push 1
push 0x226
jmp 0x40e3cd
mov dword [esp + 0x68], 1
mov ebp, 0xe0
jmp 0x40e151
cmp ax, 0x20b
jne 0x40e3c1
mov ax, word [esi + 0x10]
cmp ax, 0x88
jae 0x40e148
push 0x41773c
push 1
push 0x22c
jmp 0x40e3cd
mov dword [esp + 0x68], ebp
mov ebp, 0xf0
and eax, 0xffff
cmp eax, ebp
jae 0x40e15c
mov ebp, eax
mov dx, word [esi + 2]
lea eax, [esp + 0x30]
push eax
push ebp
push esi
push ebx
push edi
mov word [esp + 0x78], dx
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40e1c0
mov ebx, dword [esp + 0x6c]
lea ecx, [edi + 0x40]
lea edx, [edi + 0x80]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x80]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x84]
mov dword [ebx + 0x14], ecx
mov edx, dword [esi + 0x40]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x40e1fe
mov ebx, dword [esp + 0x6c]
lea edx, [edi + 0x40]
lea eax, [edi + 0x90]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x90]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 0x94]
mov dword [ebx + 0x14], edx
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x10], eax
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
add eax, 4
mov dword [ebx + 8], eax
add edi, ebp
mov eax, 0
adc edx, eax
cmp ecx, eax
mov dword [esp + 0x2c], edx
mov dword [ebx + 0x18], eax
je 0x40e3b7
cmp dword [esp + 0x20], eax
je 0x40e3b7
mov ecx, dword [esp + 0x64]
mov eax, 0x333
cmp cx, ax
mov dword [esp + 0x18], eax
jbe 0x40e249
mov dword [esp + 0x64], eax
jmp 0x40e258
cmp cx, 0xffff
jne 0x40e258
mov dword [esp + 0x64], 0xfffe
mov eax, dword [esp + 0x64]
and eax, 0xffff
lea ebp, [eax + eax*4]
shl ebp, 3
push ebp
call fcn.004109c0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40e292
push 0x4164b0
push eax
push 0x259
push str.E:_build360BaseQHImageHlp.c
call fcn.004065f0
jmp 0x40e3d7
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
push ebp
push eax
push edx
push edi
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebp
push eax
push ecx
push edx
call fcn.0040e7f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40e3b7
lea eax, [esp + 0x30]
push eax
push 0x8000
push esi
push 0xa
push edi
call fcn.0040e740
add esp, 0x14
test eax, eax
je 0x40e3b7
mov eax, dword [eax + 4]
test eax, 0x80000000
je 0x40e3b7
lea ecx, [esp + 0x30]
and eax, 0x7fffffff
push ecx
push 0x8000
push esi
add eax, edi
push 0x360
push eax
call fcn.0040e740
add esp, 0x14
test eax, eax
je 0x40e3b7
mov eax, dword [eax + 4]
test eax, 0x80000000
je 0x40e3b7
lea edx, [esp + 0x30]
and eax, 0x7fffffff
push edx
push 0x8000
push esi
add eax, edi
push 0
push eax
call fcn.0040e740
add esp, 0x14
test eax, eax
je 0x40e3b7
mov eax, dword [eax + 4]
test eax, 0x80000000
jne 0x40e3b7
lea ecx, [esp + 0x30]
add eax, edi
push ecx
push 0x10
push esi
push 0
push eax
call fcn.0040e450
add esp, 0x14
test eax, eax
je 0x40e3da
cmp dword [esi + 4], 0x80
jne 0x40e3b7
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push ebp
push edx
push 0x80
push eax
call fcn.0040e7f0
lea ecx, [esp + 0x40]
lea edx, [ebx + 0x1c]
push ecx
push 0x80
push edx
push 0
push eax
call fcn.0040e450
add esp, 0x24
test eax, eax
je 0x40e3da
mov dword [ebx + 0x18], edi
mov dword [esp + 0x14], 1
jmp 0x40e3da
push 0x417728
push 1
push 0x230
push str.E:_build360BaseQHImageHlp.c
call fcn.00406a70
add esp, 0x10
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40e3ef
push eax
call fcn.004109d0
add esp, 4
mov eax, dword [esp]
test eax, eax
je 0x40e400
push eax
call fcn.004109d0
add esp, 4
mov eax, dword [esp + 4]
add esp, 0x50
ret