Function at 0x4716db
Capabilities:
Get file size

Disassembly:
push 0xbc
mov eax, 0x663c78
call fcn.0065dfa3
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
je 0x471a14
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x471965
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jl 0x471965
jg 0x471722
cmp dword [ebp - 0x30], 0x10
jbe 0x471965
test eax, eax
jle 0x4717cd
push 5
pop ecx
call fcn.004901ff
test al, al
je 0x471a14
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00450621
mov edx, str.File_size_too_big.
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xc8]
call fcn.004516a8
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x10], esp
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x7181e8
push eax
call fcn.00471c78
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7181d0
push eax
call fcn.0046dd6f
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00450ef9
mov byte [ebp - 4], 4
mov edx, 0x9c
jmp 0x4719fe
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.00471a24
mov edi, dword [ebp - 0x18]
mov eax, edi
or eax, dword [ebp - 0x14]
jne 0x471890
push 3
pop ecx
call fcn.004901ff
test al, al
je 0x471a14
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00450621
mov edx, str.Not_find_PE_end.
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xc8]
call fcn.004516a8
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x14], esp
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
sub esp, 0x18
mov byte [ebp - 4], 9
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7181e8
push eax
call fcn.00471c78
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x7181d0
push eax
call fcn.0046dd6f
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450ef9
mov byte [ebp - 4], 8
mov edx, 0xa3
push 3
jmp 0x471a00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.00471ac8
mov ecx, dword [ebp - 0x28]
mov eax, ecx
or eax, dword [ebp - 0x24]
jne 0x471955
push 3
pop ecx
call fcn.004901ff
test al, al
je 0x471a14
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00450621
mov edx, str.Not_find_PE_begin.
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0xc8]
call fcn.004516a8
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x14], esp
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7181e8
push eax
call fcn.00471c78
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x7181d0
push eax
call fcn.0046dd6f
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450ef9
mov byte [ebp - 4], 0xc
mov edx, 0xaa
jmp 0x471889
mov eax, dword [ebp + 8]
add ecx, 3
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x471a1c
push 5
pop ecx
call fcn.004901ff
test al, al
je 0x471a14
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00450621
mov edx, str.Failed_to_get_file_size.
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc8]
call fcn.004516a8
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x14], esp
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
sub esp, 0x18
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7181e8
push eax
call fcn.00471c78
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x7181d0
push eax
call fcn.0046dd6f
sub esp, 0x18
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450ef9
mov byte [ebp - 4], bl
mov edx, 0x96
push 5
pop ecx
call fcn.0049016f
add esp, 0x60
lea ecx, [ebp - 0xc8]
call fcn.0044e8bd
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov dword [eax], ebx
call fcn.0065df71
ret 8