Function at 0x416440
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 0x416492
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.00563512
jmp 0x41694d
push 0x4000
mov dword [ebp - 0x2c], 0x4000
call fcn.004013d6
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4164b4
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], esi
cmp esi, edi
jne 0x4164d6
push 0x62e22c
push 0x223
push str.QHImageHlp.c
xor edx, edx
call fcn.00563512
jmp 0x41694d
mov esi, dword [ebp + 8]
push 0x40
push esi
push edi
push edi
lea edi, [ebp - 0x58]
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x416934
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x416934
push 4
cdq
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
cmp dword [ebp - 0x20], 0x4550
je 0x41653b
push str._rN_f
push 0x22e
jmp 0x41693e
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 0x416587
push pe_nt_image_headers32
push esi
push ecx
push 0x80
lea edi, [ebp - 0x58]
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
cmp dword [esi], 0x82c8851f
jne 0x416587
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.004169e1
add esp, 0x10
test eax, eax
je 0x416950
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.004169e1
add esp, 0x10
test eax, eax
je 0x416950
mov eax, dword [ebp - 0x1c]
mov ecx, 0x10b
cmp ax, cx
jne 0x416605
movzx ecx, word [esi + 0x10]
cmp ecx, 0x78
jae 0x4165f4
push 0x62e380
push 0x248
jmp 0x41693e
mov eax, 0xe0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], eax
jmp 0x416641
mov edx, 0x20b
cmp ax, dx
jne 0x416928
movzx ecx, word [esi + 0x10]
mov eax, 0x88
cmp cx, ax
jae 0x416630
push 0x62e380
push 0x24e
jmp 0x41693e
mov dword [ebp - 8], 0xf0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0
movzx ecx, cx
cmp ecx, eax
jae 0x41664d
mov dword [ebp - 8], ecx
mov eax, ecx
movzx ecx, word [esi + 2]
mov dword [ebp - 4], ecx
test eax, eax
je 0x416678
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push esi
push edx
push eax
lea edi, [ebp - 0x58]
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], 0
je 0x4166dc
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 0x4166ca
mov byte [ebx + 0x9d], cl
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x74]
jmp 0x416738
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x74]
jmp 0x416738
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 0x41671f
mov byte [ebx + 0x9d], cl
jmp 0x416726
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 0x416778
cmp byte [ebx + 0x9c], al
jne 0x416778
mov dword [ebp - 8], ecx
cmp byte [ebx + 0x9d], al
jne 0x41677b
mov dword [ebp - 8], eax
cmp dword [ebp - 0x18], eax
jne 0x416789
cmp dword [ebp - 8], eax
je 0x41691f
mov ecx, dword [ebp - 4]
mov eax, 0x333
mov edx, eax
mov dword [ebp - 0x1c], eax
cmp cx, dx
jbe 0x4167a0
mov dword [ebp - 4], eax
jmp 0x4167b1
mov eax, 0xffff
cmp cx, ax
jne 0x4167b1
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.00416c79
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4167e7
push 0x62e22c
push 0x289
push str.QHImageHlp.c
xor edx, edx
call fcn.00563512
jmp 0x41694d
test esi, esi
je 0x416808
mov ecx, dword [ebp - 0x24]
push esi
push eax
push ecx
push edi
lea edi, [ebp - 0x58]
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
mov eax, dword [ebp - 0xc]
add dword [ebx + 0xb0], esi
cmp dword [ebp - 8], 0
mov esi, dword [ebp - 4]
je 0x41683f
xor edx, edx
xor ecx, ecx
cmp dx, si
jae 0x41683f
cmp dword [eax], 0x54494e49
jne 0x41682d
cmp byte [eax + 4], dl
je 0x416838
inc ecx
add eax, 0x28
cmp cx, si
jb 0x416820
jmp 0x41683f
mov byte [ebx + 0x9e], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00416c95
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x41691f
mov esi, dword [ebp + 8]
push esi
push 0xa
push edi
lea eax, [ebp - 0x58]
call fcn.00416d0b
add esp, 0xc
test eax, eax
je 0x41691f
mov eax, dword [eax + 4]
test eax, eax
jns 0x41691f
and eax, 0x7fffffff
push esi
add eax, edi
push 0x360
push eax
lea eax, [ebp - 0x58]
call fcn.00416d0b
add esp, 0xc
test eax, eax
je 0x41691f
mov eax, dword [eax + 4]
test eax, eax
jns 0x41691f
and eax, 0x7fffffff
push esi
add eax, edi
push 0
push eax
lea eax, [ebp - 0x58]
call fcn.00416d0b
add esp, 0xc
test eax, eax
je 0x41691f
mov eax, dword [eax + 4]
test eax, eax
js 0x41691f
push 0x10
xor ecx, ecx
push esi
add eax, edi
push ecx
push eax
lea edi, [ebp - 0x58]
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
cmp dword [esi + 4], 0x80
jne 0x41691f
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx]
push 0x80
call fcn.00416c95
add esp, 4
push 0x80
lea edx, [ebx + 0x1c]
push edx
push 0
push eax
call fcn.004169e1
add esp, 0x10
test eax, eax
je 0x416950
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x10], 1
jmp 0x416950
push str._rN_e
push 0x252
jmp 0x41693e
push str._rN_f
push 0x229
push str.QHImageHlp.c
mov edx, 1
call fcn.0056363b
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ecx, ecx
je 0x41698d
mov eax, dword [0x6a2f74]
cmp eax, 1
je 0x416984
jle 0x41697c
cmp eax, 3
jg 0x41697c
push ecx
mov ecx, dword [0x69f4c8]
push 0
push ecx
call esi
jmp 0x41698d
push ecx
call fcn.00403b21
jmp 0x41698a
push ecx
call fcn.0055e50e
add esp, 4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4169d7
mov eax, dword [0x6a2f74]
cmp eax, 1
je 0x4169ce
jle 0x4169bb
cmp eax, 3
jg 0x4169bb
mov edx, dword [0x69f4c8]
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.0055e50e
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret