Function at 0x4157e5
Capabilities:
Get file size
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.00402394
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x415837
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
jmp 0x415cf2
push 0x4000
mov dword [ebp - 0x2c], 0x4000
call fcn.004013d6
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x415859
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], esi
cmp esi, edi
jne 0x41587b
push 0x64064c
push 0x223
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
jmp 0x415cf2
mov esi, dword [ebp + 8]
push 0x40
push esi
push edi
push edi
lea edi, [ebp - 0x58]
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x415cd9
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x415cd9
push 4
cdq
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
cmp dword [ebp - 0x20], 0x4550
je 0x4158e0
push 0x640770
push 0x22e
jmp 0x415ce3
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 0x41592c
push pe_nt_image_headers32
push esi
push ecx
push 0x80
lea edi, [ebp - 0x58]
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
cmp dword [esi], 0x82c8851f
jne 0x41592c
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.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
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.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
mov eax, dword [ebp - 0x1c]
mov ecx, 0x10b
cmp ax, cx
jne 0x4159aa
movzx ecx, word [esi + 0x10]
cmp ecx, 0x78
jae 0x415999
push 0x640788
push 0x248
jmp 0x415ce3
mov eax, 0xe0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], eax
jmp 0x4159e6
mov edx, 0x20b
cmp ax, dx
jne 0x415ccd
movzx ecx, word [esi + 0x10]
mov eax, 0x88
cmp cx, ax
jae 0x4159d5
push 0x640788
push 0x24e
jmp 0x415ce3
mov dword [ebp - 8], 0xf0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0
movzx ecx, cx
cmp ecx, eax
jae 0x4159f2
mov dword [ebp - 8], ecx
mov eax, ecx
movzx ecx, word [esi + 2]
mov dword [ebp - 4], ecx
test eax, eax
je 0x415a1d
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push esi
push edx
push eax
lea edi, [ebp - 0x58]
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], 0
je 0x415a81
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 0x415a6f
mov byte [ebx + 0x9d], cl
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x74]
jmp 0x415add
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x74]
jmp 0x415add
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 0x415ac4
mov byte [ebx + 0x9d], cl
jmp 0x415acb
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 0x415b1d
cmp byte [ebx + 0x9c], al
jne 0x415b1d
mov dword [ebp - 8], ecx
cmp byte [ebx + 0x9d], al
jne 0x415b20
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], eax
jne 0x415b2e
cmp dword [ebp - 8], eax
je 0x415cc4
mov ecx, dword [ebp - 4]
mov eax, 0x333
mov edx, eax
mov dword [ebp - 0x1c], eax
cmp cx, dx
jbe 0x415b45
mov dword [ebp - 4], eax
jmp 0x415b56
mov eax, 0xffff
cmp cx, ax
jne 0x415b56
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.0041601e
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x415b8c
push 0x64064c
push 0x289
push str.QHImageHlp.c
xor edx, edx
call fcn.005757fa
jmp 0x415cf2
test esi, esi
je 0x415bad
mov ecx, dword [ebp - 0x24]
push esi
push eax
push ecx
push edi
lea edi, [ebp - 0x58]
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
mov eax, dword [ebp - 0xc]
add dword [ebx + 0xb0], esi
cmp dword [ebp - 8], 0
mov esi, dword [ebp - 4]
je 0x415be4
xor edx, edx
xor ecx, ecx
cmp dx, si
jae 0x415be4
cmp dword [eax], 0x54494e49
jne 0x415bd2
cmp byte [eax + 4], dl
je 0x415bdd
inc ecx
add eax, 0x28
cmp cx, si
jb 0x415bc5
jmp 0x415be4
mov byte [ebx + 0x9e], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041603a
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x415cc4
mov esi, dword [ebp + 8]
push esi
push 0xa
push edi
lea eax, [ebp - 0x58]
call fcn.004160b0
add esp, 0xc
test eax, eax
je 0x415cc4
mov eax, dword [eax + 4]
test eax, eax
jns 0x415cc4
and eax, 0x7fffffff
push esi
add eax, edi
push 0x360
push eax
lea eax, [ebp - 0x58]
call fcn.004160b0
add esp, 0xc
test eax, eax
je 0x415cc4
mov eax, dword [eax + 4]
test eax, eax
jns 0x415cc4
and eax, 0x7fffffff
push esi
add eax, edi
push 0
push eax
lea eax, [ebp - 0x58]
call fcn.004160b0
add esp, 0xc
test eax, eax
je 0x415cc4
mov eax, dword [eax + 4]
test eax, eax
js 0x415cc4
push 0x10
xor ecx, ecx
push esi
add eax, edi
push ecx
push eax
lea edi, [ebp - 0x58]
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
cmp dword [esi + 4], 0x80
jne 0x415cc4
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx]
push 0x80
call fcn.0041603a
add esp, 4
push 0x80
lea edx, [ebx + 0x1c]
push edx
push 0
push eax
call fcn.00415d86
add esp, 0x10
test eax, eax
je 0x415cf5
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x10], 1
jmp 0x415cf5
push str._rN_e
push 0x252
jmp 0x415ce3
push 0x640770
push 0x229
push str.QHImageHlp.c
mov edx, 1
call fcn.00575923
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ecx, ecx
je 0x415d32
mov eax, dword [0x6b7fe4]
cmp eax, 1
je 0x415d29
jle 0x415d21
cmp eax, 3
jg 0x415d21
push ecx
mov ecx, dword [0x6b44d0]
push 0
push ecx
call esi
jmp 0x415d32
push ecx
call fcn.00403b21
jmp 0x415d2f
push ecx
call fcn.005707f4
add esp, 4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x415d7c
mov eax, dword [0x6b7fe4]
cmp eax, 1
je 0x415d73
jle 0x415d60
cmp eax, 3
jg 0x415d60
mov edx, dword [0x6b44d0]
push ecx
push 0
push edx
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00403b21
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.005707f4
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret