Function at 0x41e220
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.00427d80
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 0x41e26e
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
jmp 0x41e734
push 0x4000
mov dword [ebp - 0x30], 0x4000
call fcn.00425421
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x41e290
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], esi
cmp esi, edi
jne 0x41e2b2
push 0x440758
push 0x223
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
jmp 0x41e734
mov esi, dword [ebp + 8]
push 0x40
push esi
push edi
push edi
lea edi, [ebp - 0x5c]
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x41e71b
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x41e71b
push 4
cdq
lea ecx, [ebp - 0x24]
push ecx
push edx
push eax
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
cmp dword [ebp - 0x24], 0x4550
je 0x41e317
push str._rN_f
push 0x22e
jmp 0x41e725
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 0x41e363
push 0x90
push esi
push ecx
push 0x80
lea edi, [ebp - 0x5c]
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
cmp dword [esi], 0x82c8851f
jne 0x41e363
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.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
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.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
mov eax, dword [ebp - 0x20]
mov ecx, 0x10b
cmp ax, cx
jne 0x41e3e1
movzx ecx, word [esi + 0x10]
cmp ecx, 0x78
jae 0x41e3d0
push 0x44097c
push 0x248
jmp 0x41e725
mov eax, 0xe0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], eax
jmp 0x41e41d
mov edx, 0x20b
cmp ax, dx
jne 0x41e70f
movzx ecx, word [esi + 0x10]
mov eax, 0x88
cmp cx, ax
jae 0x41e40c
push 0x44097c
push 0x24e
jmp 0x41e725
mov dword [ebp - 0xc], 0xf0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], 0
movzx ecx, cx
cmp ecx, eax
jae 0x41e429
mov dword [ebp - 0xc], ecx
mov eax, ecx
movzx ecx, word [esi + 2]
mov dword [ebp - 8], ecx
test eax, eax
je 0x41e454
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push edx
push eax
lea edi, [ebp - 0x5c]
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x41e4b8
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 0x41e4a6
mov byte [ebx + 0x9d], cl
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x74]
jmp 0x41e514
mov byte [ebx + 0x9d], 0
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x74]
jmp 0x41e514
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 0x41e4fb
mov byte [ebx + 0x9d], cl
jmp 0x41e502
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 0x41e554
cmp byte [ebx + 0x9c], al
jne 0x41e554
mov dword [ebp - 0xc], ecx
cmp byte [ebx + 0x9d], al
jne 0x41e557
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], eax
jne 0x41e565
cmp dword [ebp - 0xc], eax
je 0x41e706
mov ecx, dword [ebp - 8]
mov eax, 0x333
mov edx, eax
mov dword [ebp - 0x20], eax
cmp cx, dx
jbe 0x41e57c
mov dword [ebp - 8], eax
jmp 0x41e58d
mov eax, 0xffff
cmp cx, ax
jne 0x41e58d
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.0041deb0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41e5c3
push 0x440758
push 0x289
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
jmp 0x41e734
test esi, esi
je 0x41e5e4
mov ecx, dword [ebp - 0x28]
push esi
push eax
push ecx
push edi
lea edi, [ebp - 0x5c]
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
mov eax, dword [ebp - 0x10]
add dword [ebx + 0xb0], esi
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 8]
je 0x41e61f
xor edx, edx
xor ecx, ecx
cmp dx, si
jae 0x41e61f
lea esp, [esp]
cmp dword [eax], 0x54494e49
jne 0x41e60d
cmp byte [eax + 4], dl
je 0x41e618
inc ecx
add eax, 0x28
cmp cx, si
jb 0x41e600
jmp 0x41e61f
mov byte [ebx + 0x9e], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041e810
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x41e706
mov esi, dword [ebp + 8]
push 0xa
push edi
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.0041e760
add esp, 8
test eax, eax
je 0x41e706
mov eax, dword [eax + 4]
test eax, eax
jns 0x41e706
and eax, 0x7fffffff
add eax, edi
push 0x360
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.0041e760
add esp, 8
test eax, eax
je 0x41e706
mov eax, dword [eax + 4]
test eax, eax
jns 0x41e706
and eax, 0x7fffffff
add eax, edi
push 0
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.0041e760
add esp, 8
test eax, eax
je 0x41e706
mov eax, dword [eax + 4]
test eax, eax
js 0x41e706
push 0x10
xor ecx, ecx
push esi
add eax, edi
push ecx
push eax
lea edi, [ebp - 0x5c]
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
cmp dword [esi + 4], 0x80
jne 0x41e706
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ecx]
push 0x80
call fcn.0041e810
add esp, 4
push 0x80
lea edx, [ebx + 0x1c]
push edx
push 0
push eax
call fcn.0041dfe0
add esp, 0x10
test eax, eax
je 0x41e737
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x14], 1
jmp 0x41e737
push str._rN_e
push 0x252
jmp 0x41e725
push str._rN_f
push 0x229
push str.QHImageHlp.c
mov edx, 1
call fcn.00421b40
add esp, 0xc
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41e747
push eax
call fcn.00424001
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41e757
push eax
call fcn.00424001
add esp, 4
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret