Function at 0x4cac80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push 0x30
mov esi, eax
lea eax, [ebp - 0x58]
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00506540
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x58], esi
call dword [0x52b318]
test eax, eax
jne 0x4cacd2
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.004ce4b0
jmp 0x4cb18d
push 0x4000
mov dword [ebp - 0x2c], 0x4000
call fcn.004fe92b
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4cacf4
push 8
call dword [0x52b1ac]
mov dword [ebp - 0x30], esi
cmp esi, edi
jne 0x4cad16
push 0x55d948
push 0x223
push str.QHImageHlp.c
xor edx, edx
call fcn.004ce4b0
jmp 0x4cb18d
mov esi, dword [ebp + 8]
push 0x40
push esi
push edi
push edi
lea edi, [ebp - 0x58]
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x4cb174
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x4cb174
push 4
cdq
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
cmp dword [ebp - 0x20], 0x4550
je 0x4cad7b
push str._rN_f
push 0x22e
jmp 0x4cb17e
mov eax, dword [esi + 0x3c]
xor ecx, ecx
lea edx, [eax + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebx + 0xa0], ecx
cmp eax, 0x110
jb 0x4cadc7
push 0x90
push esi
push ecx
push 0x80
lea edi, [ebp - 0x58]
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
cmp dword [esi], 0x82c8851f
jne 0x4cadc7
mov dword [ebx + 0xa0], 0x80
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push 0x14
push esi
push eax
push ecx
lea edi, [ebp - 0x58]
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add eax, 0x14
push 2
lea edx, [ebp - 0x1c]
adc ecx, 0
push edx
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
mov eax, dword [ebp - 0x1c]
mov ecx, 0x10b
cmp ax, cx
jne 0x4cae45
movzx ecx, word [esi + 0x10]
cmp ecx, 0x78
jae 0x4cae34
push 0x55db6c
push 0x248
jmp 0x4cb17e
mov eax, 0xe0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], eax
jmp 0x4cae81
mov edx, 0x20b
cmp ax, dx
jne 0x4cb168
movzx ecx, word [esi + 0x10]
mov eax, 0x88
cmp cx, ax
jae 0x4cae70
push 0x55db6c
push 0x24e
jmp 0x4cb17e
mov dword [ebp - 8], 0xf0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0
movzx ecx, cx
cmp ecx, eax
jae 0x4cae8d
mov dword [ebp - 8], ecx
mov eax, ecx
movzx ecx, word [esi + 2]
mov dword [ebp - 4], ecx
test eax, eax
je 0x4caeb8
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push esi
push edx
push eax
lea edi, [ebp - 0x58]
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], 0
je 0x4caf1c
mov edi, dword [ebp - 0x28]
lea ecx, [edi + 0x40]
mov dword [ebx], ecx
lea edx, [edi + 0x80]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0x80]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 0x84]
mov dword [ebx + 0x14], edx
mov ecx, dword [esi + 0x40]
mov dword [ebx + 0x10], ecx
mov ecx, 1
mov byte [ebx + 0x9c], 0
cmp word [esi + 0x44], cx
jne 0x4caf0a
mov byte [ebx + 0x9d], cl
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x74]
jmp 0x4caf78
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x74]
jmp 0x4caf78
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + 0x40]
add ecx, 0x90
mov dword [ebx + 4], ecx
mov dword [ebx], edx
mov ecx, dword [esi + 0x90]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 0x94]
mov dword [ebx + 0x14], edx
mov ecx, dword [esi + 0x40]
mov dword [ebx + 0x10], ecx
mov ecx, 1
mov byte [ebx + 0x9c], 1
cmp word [esi + 0x44], cx
jne 0x4caf5f
mov byte [ebx + 0x9d], cl
jmp 0x4caf66
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x80]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x84]
mov dword [ebp - 0x14], edx
mov edx, dword [ebx + 4]
add edx, 4
add edi, eax
mov eax, 0
adc dword [ebp - 0x24], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x9e], al
mov dword [ebx + 0xb0], edi
cmp dword [ebx + 0xa0], eax
je 0x4cafb8
cmp byte [ebx + 0x9c], al
jne 0x4cafb8
mov dword [ebp - 8], ecx
cmp byte [ebx + 0x9d], al
jne 0x4cafbb
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], eax
jne 0x4cafc9
cmp dword [ebp - 8], eax
je 0x4cb15f
mov ecx, dword [ebp - 4]
mov eax, 0x333
mov edx, eax
mov dword [ebp - 0x1c], eax
cmp cx, dx
jbe 0x4cafe0
mov dword [ebp - 4], eax
jmp 0x4caff1
mov eax, 0xffff
cmp cx, ax
jne 0x4caff1
mov dword [ebp - 4], 0xfffe
movzx esi, word [ebp - 4]
lea esi, [esi + esi*4]
add esi, esi
add esi, esi
add esi, esi
mov eax, esi
call fcn.004ca910
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4cb027
push 0x55d948
push 0x289
push str.QHImageHlp.c
xor edx, edx
call fcn.004ce4b0
jmp 0x4cb18d
test esi, esi
je 0x4cb048
mov ecx, dword [ebp - 0x24]
push esi
push eax
push ecx
push edi
lea edi, [ebp - 0x58]
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
mov eax, dword [ebp - 0xc]
add dword [ebx + 0xb0], esi
cmp dword [ebp - 8], 0
mov esi, dword [ebp - 4]
je 0x4cb07f
xor edx, edx
xor ecx, ecx
cmp dx, si
jae 0x4cb07f
cmp dword [eax], 0x54494e49
jne 0x4cb06d
cmp byte [eax + 4], dl
je 0x4cb078
inc ecx
add eax, 0x28
cmp cx, si
jb 0x4cb060
jmp 0x4cb07f
mov byte [ebx + 0x9e], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004cb270
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4cb15f
mov esi, dword [ebp + 8]
push esi
push 0xa
push edi
lea eax, [ebp - 0x58]
call fcn.004cb1c0
add esp, 0xc
test eax, eax
je 0x4cb15f
mov eax, dword [eax + 4]
test eax, eax
jns 0x4cb15f
and eax, 0x7fffffff
push esi
add eax, edi
push 0x360
push eax
lea eax, [ebp - 0x58]
call fcn.004cb1c0
add esp, 0xc
test eax, eax
je 0x4cb15f
mov eax, dword [eax + 4]
test eax, eax
jns 0x4cb15f
and eax, 0x7fffffff
push esi
add eax, edi
push 0
push eax
lea eax, [ebp - 0x58]
call fcn.004cb1c0
add esp, 0xc
test eax, eax
je 0x4cb15f
mov eax, dword [eax + 4]
test eax, eax
js 0x4cb15f
push 0x10
xor ecx, ecx
push esi
add eax, edi
push ecx
push eax
lea edi, [ebp - 0x58]
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
cmp dword [esi + 4], 0x80
jne 0x4cb15f
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx]
push 0x80
call fcn.004cb270
add esp, 4
push 0x80
lea edx, [ebx + 0x1c]
push edx
push 0
push eax
call fcn.004caa40
add esp, 0x10
test eax, eax
je 0x4cb190
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x10], 1
jmp 0x4cb190
push str._rN_e
push 0x252
jmp 0x4cb17e
push str._rN_f
push 0x229
push str.QHImageHlp.c
mov edx, 1
call fcn.004ce5e0
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4cb1a0
push eax
call fcn.004fe8f1
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4cb1b0
push eax
call fcn.004fe8f1
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret