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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
xor edi, edi
push 0x30
mov esi, eax
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00461390
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push esi
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40401e
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
jmp 0x4044e4
push 0x4000
mov dword [ebp - 0x30], 0x4000
call fcn.00461139
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x404040
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], esi
cmp esi, edi
jne 0x404062
push 0x4ad728
push 0x223
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
jmp 0x4044e4
mov esi, dword [ebp + 8]
push 0x40
push esi
push edi
push edi
lea edi, [ebp - 0x5c]
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x4044cb
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x4044cb
push 4
cdq
lea ecx, [ebp - 0x24]
push ecx
push edx
push eax
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
cmp dword [ebp - 0x24], 0x4550
je 0x4040c7
push str._rN_f
push 0x22e
jmp 0x4044d5
mov eax, dword [esi + 0x3c]
xor ecx, ecx
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebx + 0xa0], ecx
cmp eax, 0x110
jb 0x404113
push 0x90
push esi
push ecx
push 0x80
lea edi, [ebp - 0x5c]
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
cmp dword [esi], 0x82c8851f
jne 0x404113
mov dword [ebx + 0xa0], 0x80
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push 0x14
push esi
push eax
push ecx
lea edi, [ebp - 0x5c]
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add eax, 0x14
push 2
lea edx, [ebp - 0x20]
adc ecx, 0
push edx
push ecx
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
mov eax, dword [ebp - 0x20]
mov ecx, 0x10b
cmp ax, cx
jne 0x404191
movzx ecx, word [esi + 0x10]
cmp ecx, 0x78
jae 0x404180
push 0x4ad9b4
push 0x248
jmp 0x4044d5
mov eax, 0xe0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], eax
jmp 0x4041cd
mov edx, 0x20b
cmp ax, dx
jne 0x4044bf
movzx ecx, word [esi + 0x10]
mov eax, 0x88
cmp cx, ax
jae 0x4041bc
push 0x4ad9b4
push 0x24e
jmp 0x4044d5
mov dword [ebp - 0xc], 0xf0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], 0
movzx ecx, cx
cmp ecx, eax
jae 0x4041d9
mov dword [ebp - 0xc], ecx
mov eax, ecx
movzx ecx, word [esi + 2]
mov dword [ebp - 8], ecx
test eax, eax
je 0x404204
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push edx
push eax
lea edi, [ebp - 0x5c]
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x404268
mov edi, dword [ebp - 0x2c]
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 0x404256
mov byte [ebx + 0x9d], cl
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x74]
jmp 0x4042c4
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x74]
jmp 0x4042c4
mov ecx, dword [ebp - 0x2c]
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 0x4042ab
mov byte [ebx + 0x9d], cl
jmp 0x4042b2
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x80]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x84]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 4]
add edx, 4
add edi, eax
mov eax, 0
adc dword [ebp - 0x28], 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 0x404304
cmp byte [ebx + 0x9c], al
jne 0x404304
mov dword [ebp - 0xc], ecx
cmp byte [ebx + 0x9d], al
jne 0x404307
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], eax
jne 0x404315
cmp dword [ebp - 0xc], eax
je 0x4044b6
mov ecx, dword [ebp - 8]
mov eax, 0x333
mov edx, eax
mov dword [ebp - 0x20], eax
cmp cx, dx
jbe 0x40432c
mov dword [ebp - 8], eax
jmp 0x40433d
mov eax, 0xffff
cmp cx, ax
jne 0x40433d
mov dword [ebp - 8], 0xfffe
movzx esi, word [ebp - 8]
lea esi, [esi + esi*4]
add esi, esi
add esi, esi
add esi, esi
mov eax, esi
call fcn.004035a0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x404373
push 0x4ad728
push 0x289
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
jmp 0x4044e4
test esi, esi
je 0x404394
mov ecx, dword [ebp - 0x28]
push esi
push eax
push ecx
push edi
lea edi, [ebp - 0x5c]
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
mov eax, dword [ebp - 0x10]
add dword [ebx + 0xb0], esi
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 8]
je 0x4043cf
xor edx, edx
xor ecx, ecx
cmp dx, si
jae 0x4043cf
lea esp, [esp]
cmp dword [eax], 0x54494e49
jne 0x4043bd
cmp byte [eax + 4], dl
je 0x4043c8
inc ecx
add eax, 0x28
cmp cx, si
jb 0x4043b0
jmp 0x4043cf
mov byte [ebx + 0x9e], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004045c0
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4044b6
mov esi, dword [ebp + 8]
push 0xa
push edi
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.00404510
add esp, 8
test eax, eax
je 0x4044b6
mov eax, dword [eax + 4]
test eax, eax
jns 0x4044b6
and eax, 0x7fffffff
add eax, edi
push 0x360
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.00404510
add esp, 8
test eax, eax
je 0x4044b6
mov eax, dword [eax + 4]
test eax, eax
jns 0x4044b6
and eax, 0x7fffffff
add eax, edi
push 0
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.00404510
add esp, 8
test eax, eax
je 0x4044b6
mov eax, dword [eax + 4]
test eax, eax
js 0x4044b6
push 0x10
xor ecx, ecx
push esi
add eax, edi
push ecx
push eax
lea edi, [ebp - 0x5c]
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
cmp dword [esi + 4], 0x80
jne 0x4044b6
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ecx]
push 0x80
call fcn.004045c0
add esp, 4
push 0x80
lea edx, [ebx + 0x1c]
push edx
push 0
push eax
call fcn.00403d90
add esp, 0x10
test eax, eax
je 0x4044e7
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x14], 1
jmp 0x4044e7
push str._rN_e
push 0x252
jmp 0x4044d5
push str._rN_f
push 0x229
push str.QHImageHlp.c
mov edx, 1
call fcn.00409d60
add esp, 0xc
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4044f7
push eax
call fcn.004611cd
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404507
push eax
call fcn.004611cd
add esp, 4
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret