Function at 0x459b60
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push 0x30
push ebx
push eax
mov edi, edx
mov dword [ebp - 4], ebx
mov esi, ecx
call fcn.00463e50
add esp, 0xc
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x459bb0
push str.GetFileSizeEx__
push eax
push 0x11e
push str.QHImageHlp.c
call fcn.0045c8e0
add esp, 0x10
jmp 0x459d22
mov ecx, 0x4000
mov dword [ebp - 0x2c], 0x4000
call fcn.0045d800
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x459be5
push 0x4ab72c
push eax
push 0x223
push str.QHImageHlp.c
call fcn.0045c8e0
add esp, 0x10
jmp 0x459d22
lea eax, [ebp - 0x58]
mov edx, 0x40
push eax
push 0
push 0
mov ecx, edi
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d22
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x45a0c8
mov eax, dword [edi + 0x3c]
test eax, eax
jle 0x45a0c8
cdq
lea ecx, [ebp - 0x58]
push ecx
push edx
push eax
mov edx, 4
lea ecx, [ebp - 0x24]
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d22
cmp dword [ebp - 0x24], 0x4550
je 0x459c63
push str._rN_f
push 1
push 0x22e
push str.QHImageHlp.c
call fcn.0045c9e0
add esp, 0x10
jmp 0x459d22
mov eax, dword [edi + 0x3c]
mov esi, dword [ebp + 8]
lea ebx, [eax + 4]
mov dword [esi + 0xa0], 0
cmp eax, 0x110
jb 0x459cb1
lea eax, [ebp - 0x58]
mov edx, 0x90
push eax
push 0
push 0x80
mov ecx, edi
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d20
cmp dword [edi], 0x82c8851f
jne 0x459cb1
mov dword [esi + 0xa0], 0x80
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
xor eax, eax
push eax
push ebx
lea edx, [eax + 0x14]
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d20
add ebx, 0x14
lea ecx, [ebp - 0x58]
push ecx
mov eax, 0
lea ecx, [ebp - 0x10]
adc eax, eax
mov edx, 2
push eax
push ebx
mov dword [ebp - 8], eax
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d20
mov eax, dword [ebp - 0x10]
mov ecx, 0x10b
cmp ax, cx
jne 0x459d66
movzx eax, word [edi + 0x10]
cmp eax, 0x78
jae 0x459d58
push 0x4ac00c
push 1
push 0x248
push str.QHImageHlp.c
call fcn.0045c9e0
add esp, 0x10
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 0x30], 0
je 0x459d3b
mov eax, dword [0x4b2a14]
push dword [ebp - 0x30]
push eax
mov eax, dword [eax + 0x10]
call eax
add esp, 8
test ebx, ebx
je 0x459d4f
mov ecx, dword [0x4b2a14]
push ebx
push ecx
mov ecx, dword [ecx + 0x10]
call ecx
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 1
mov ecx, 0xe0
jmp 0x459d9c
mov ecx, 0x20b
cmp ax, cx
jne 0x45a0b7
movzx eax, word [edi + 0x10]
mov ecx, 0x88
cmp ax, cx
jae 0x459d90
push 0x4ac00c
push 1
push 0x24e
jmp 0x459d13
mov dword [ebp - 0xc], 0
mov ecx, 0xf0
movzx eax, ax
cmp eax, ecx
cmovb ecx, eax
movzx eax, word [edi + 2]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x459dd2
lea eax, [ebp - 0x58]
mov edx, ecx
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
push eax
push ebx
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d20
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0x40]
mov dword [esi], eax
je 0x459e2a
lea eax, [ebx + 0x80]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x80]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x10], eax
mov byte [esi + 0x9c], 0
cmp word [edi + 0x44], 1
jne 0x459e1b
mov byte [esi + 0x9d], 1
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
jmp 0x459e75
mov byte [esi + 0x9d], 0
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
jmp 0x459e75
lea eax, [ebx + 0x90]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x10], eax
mov byte [esi + 0x9c], 1
cmp word [edi + 0x44], 1
jne 0x459e62
mov byte [esi + 0x9d], 1
jmp 0x459e69
mov byte [esi + 0x9d], 0
mov edx, dword [edi + 0x80]
mov eax, dword [edi + 0x84]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
add eax, 4
mov dword [ebp - 0x20], edx
add ebx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0x18], 0
adc dword [ebp - 8], 0
cmp dword [esi + 0xa0], 0
mov byte [esi + 0x9e], 0
mov dword [esi + 0xb0], ebx
je 0x459ec0
cmp byte [esi + 0x9c], 0
jne 0x459ec0
cmp byte [esi + 0x9d], 0
je 0x459ec0
mov eax, 1
jmp 0x459ec2
xor eax, eax
mov dword [ebp - 0x18], eax
test edx, edx
jne 0x459ed1
test eax, eax
je 0x45a0aa
mov edx, dword [ebp - 0x14]
mov eax, 0x333
cmp dx, ax
mov dword [ebp - 0x14], 0xffff
mov ecx, 0xfffe
mov dword [ebp - 0x10], 0x333
cmova edx, eax
cmp dx, word [ebp - 0x14]
movzx eax, dx
cmovne ecx, eax
movzx eax, cx
mov dword [ebp - 0xc], eax
movzx eax, ax
lea eax, [eax + eax*4]
shl eax, 3
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.0045d800
mov dword [ebp - 4], eax
test eax, eax
jne 0x459f3c
push 0x4ab72c
push eax
push 0x289
push str.QHImageHlp.c
call fcn.0045c8e0
add esp, 0x10
mov ebx, dword [ebp - 4]
jmp 0x459d22
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x459f68
lea eax, [ebp - 0x58]
mov edx, ecx
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459d22
mov ecx, dword [ebp - 0x14]
jmp 0x459f6b
mov ebx, dword [ebp - 4]
add dword [esi + 0xb0], ecx
cmp dword [ebp - 0x18], 0
je 0x459fa9
mov ecx, ebx
xor eax, eax
mov ebx, dword [ebp - 0xc]
xor edx, edx
cmp ax, bx
jae 0x459fac
cmp dword [ecx], 0x54494e49
jne 0x459f95
movzx eax, byte [ecx + 4]
test al, al
je 0x459fa0
inc edx
add ecx, 0x28
cmp dx, bx
jb 0x459f85
jmp 0x459fac
mov byte [esi + 0x9e], 1
jmp 0x459fac
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push ebx
push dword [ebp - 4]
call fcn.0045a1a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45a0aa
lea eax, [ebp - 0x58]
mov edx, 0xa
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0045a0f0
add esp, 0xc
test eax, eax
je 0x45a0aa
mov ecx, dword [eax + 4]
cmp ecx, 0x80000000
jb 0x45a0aa
lea eax, [ebp - 0x58]
mov edx, 0x360
push eax
push ecx
and ecx, 0x7fffffff
push edi
add ecx, ebx
call fcn.0045a0f0
add esp, 0xc
test eax, eax
je 0x45a0aa
mov ecx, dword [eax + 4]
cmp ecx, 0x80000000
jb 0x45a0aa
lea eax, [ebp - 0x58]
xor edx, edx
push eax
push ecx
and ecx, 0x7fffffff
push edi
add ecx, ebx
call fcn.0045a0f0
add esp, 0xc
test eax, eax
je 0x45a0aa
mov eax, dword [eax + 4]
cmp eax, 0x80000000
jae 0x45a0aa
lea ecx, [ebp - 0x58]
add eax, ebx
push ecx
push 0
push eax
mov edx, 0x10
mov ecx, edi
call fcn.00459900
add esp, 0xc
test eax, eax
je 0x459f34
cmp dword [edi + 4], 0x80
jne 0x45a0aa
mov eax, dword [ebp - 0xc]
mov edx, 0x80
mov ecx, dword [edi]
push eax
push dword [ebp - 4]
call fcn.0045a1a0
lea ecx, [ebp - 0x58]
mov edx, 0x80
push ecx
push 0
lea ecx, [esi + 0x1c]
push eax
call fcn.00459900
add esp, 0x14
test eax, eax
je 0x459f34
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 4]
mov esi, 1
jmp 0x459d24
push str._rN_e
push 1
push 0x252
jmp 0x459d13
push str._rN_f
push 1
push 0x229
push str.QHImageHlp.c
call fcn.0045c9e0
add esp, 0x10
jmp 0x459d22