Function at 0x1001682d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10040c97
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x10058684]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x10058684]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov word [esp + 0x288], ax
xor esi, esi
lea eax, [esp + 0x28a]
push esi
push eax
mov edi, ecx
call fcn.10024270
add esp, 0xc
push 0x100581b4
lea ecx, [esp + 0x1c]
call fcn.100023ad
mov dword [esp + 0x4a0], esi
lea ebx, [edi + 0x1c]
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov dword [esp + 0x20], esi
cmp eax, esi
jne 0x100168fe
push 0x104
lea eax, [esp + 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x284]
push 0x5c
push eax
call fcn.1001ef2c
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x28c]
push eax
call fcn.10002867
add esp, 0xc
push eax
lea eax, [esp + 0x288]
push eax
mov ecx, ebx
call fcn.10002599
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
dec ecx
cmp ecx, esi
jl 0x10016b15
cmp ecx, dword [eax - 0xc]
jg 0x10016b15
movzx eax, word [eax + ecx*2]
push 0x5c
pop ecx
cmp cx, ax
je 0x10016936
mov esi, 0x1004b5ac
push esi
call fcn.10002867
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.1000fa64
lea eax, [edi + 0x24]
push eax
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.10004316
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a4], 1
call fcn.100023d5
mov byte [esp + 0x4a0], 0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
mov esi, 0x1004d9f0
push esi
call fcn.10002867
pop ecx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.1000fa64
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016a32
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.1000436d
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
mov byte [esp + 0x4b8], 2
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10016a0c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [edi + 0x28]
jae 0x10016a02
lea eax, [esp + 0x14]
lea ecx, [edi + 0x18]
push eax
call fcn.100023d5
mov dword [esp + 0x20], 1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x4a0], 0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
cmp dword [esp + 0x20], 0
jne 0x10016ae5
push 0x208
lea eax, [esp + 0x288]
push 0
push eax
call fcn.10024270
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.1001f920
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
push dword [edi + 0x24]
lea eax, [esp + 0x2a4]
push str._s_4.4d__2.2d__2.2d__2.2d__2.2d__2.2d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.1000436d
add esp, 0x34
push eax
lea ecx, [edi + 0x18]
mov byte [esp + 0x4a4], 3
call fcn.100023d5
mov byte [esp + 0x4a0], 0
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.10002c37
mov ebx, str..txt
push ebx
call fcn.10002867
pop ecx
push eax
push ebx
lea ecx, [edi + 0x18]
call fcn.1000fa64
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.1001d73b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10002c51
int3