Function at 0x470dd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476d1f
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 0xa4], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], 0
push 0
lea ecx, [ebp - 0xa0]
call fcn.00401bb0
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045f220
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
lea ecx, [ebp - 0xa0]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xffffffff
jne 0x470f19
lea edx, [ebp - 0xdc]
push edx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x120]
push ecx
push str.CreateFile_error__
lea edx, [ebp - 0xf8]
push edx
call fcn.00402cb0
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.004016d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.004016d0
mov ecx, dword [ebp + 8]
call fcn.00401620
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x4710de
push 1
push 2
lea ecx, [ebp - 0x8c]
call fcn.0040c3d0
mov byte [ebp - 4], 4
push str._information:_n
mov eax, dword [ebp + 0xc]
push eax
push str.File
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0040cfc0
add esp, 8
push eax
call fcn.0040ad40
add esp, 8
push eax
call fcn.0040cfc0
add esp, 8
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x470fdb
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 5
push 0x483c88
mov eax, dword [ebp - 0x130]
push eax
push str.Error_getting_file_size__
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0040cfc0
add esp, 8
push eax
call fcn.0040ad40
add esp, 8
push eax
call fcn.0040cfc0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x114]
call fcn.004016d0
jmp 0x471012
push 0x483ca8
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x94]
push eax
push str.File_size:
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0040cfc0
add esp, 8
mov ecx, eax
call fcn.0040fd60
push eax
call fcn.0040cfc0
add esp, 8
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.004709e0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc0]
call fcn.004018a0
movzx edx, al
test edx, edx
je 0x47106c
push 0x495ab8
push str.Error_while_calculating_sha1__
lea eax, [ebp - 0x8c]
push eax
call fcn.0040cfc0
add esp, 8
push eax
call fcn.0040ad40
add esp, 8
jmp 0x471090
lea ecx, [ebp - 0xc0]
push ecx
push str.Files_sha1:
lea edx, [ebp - 0x8c]
push edx
call fcn.0040cfc0
add esp, 8
push eax
call fcn.0040ad40
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040c500
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
call fcn.004016d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.0040bb90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00401bf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret