Function at 0x470fd4
Capabilities:
Get file size

Disassembly:
push 0xbc
mov eax, 0x678331
call fcn.006724ad
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
je 0x47130d
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x47125e
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jl 0x47125e
jg 0x47101b
cmp dword [ebp - 0x30], 0x10
jbe 0x47125e
test eax, eax
jle 0x4710c6
push 5
pop ecx
call fcn.0049259e
test al, al
je 0x47130d
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0044f85b
mov edx, str.File_size_too_big.
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xc8]
call fcn.004508e8
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, 0x72f598
push eax
call fcn.00471571
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x72f580
push eax
call fcn.0046d628
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x14], eax
push eax
call fcn.00450176
mov byte [ebp - 4], 4
mov edx, 0x9c
jmp 0x4712f7
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.0047131d
mov edi, dword [ebp - 0x18]
mov eax, edi
or eax, dword [ebp - 0x14]
jne 0x471189
push 3
pop ecx
call fcn.0049259e
test al, al
je 0x47130d
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0044f85b
mov edx, str.Not_find_PE_end.
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xc8]
call fcn.004508e8
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, 0x72f598
push eax
call fcn.00471571
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x72f580
push eax
call fcn.0046d628
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450176
mov byte [ebp - 4], 8
mov edx, 0xa3
push 3
jmp 0x4712f9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.004713c1
mov ecx, dword [ebp - 0x28]
mov eax, ecx
or eax, dword [ebp - 0x24]
jne 0x47124e
push 3
pop ecx
call fcn.0049259e
test al, al
je 0x47130d
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0044f85b
mov edx, str.Not_find_PE_begin.
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0xc8]
call fcn.004508e8
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, 0x72f598
push eax
call fcn.00471571
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x72f580
push eax
call fcn.0046d628
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450176
mov byte [ebp - 4], 0xc
mov edx, 0xaa
jmp 0x471182
mov eax, dword [ebp + 8]
add ecx, 3
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x471315
push 5
pop ecx
call fcn.0049259e
test al, al
je 0x47130d
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0044f85b
mov edx, str.Failed_to_get_file_size.
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc8]
call fcn.004508e8
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, 0x72f598
push eax
call fcn.00471571
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x1c], esp
mov ecx, 0x72f580
push eax
call fcn.0046d628
sub esp, 0x18
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450176
mov byte [ebp - 4], bl
mov edx, 0x96
push 5
pop ecx
call fcn.0049250e
add esp, 0x60
lea ecx, [ebp - 0xc8]
call fcn.0044da7b
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov dword [eax], ebx
call fcn.0067247b
ret 8