Function at 0x4723c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5dc
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x5d8], eax
push ebx
push esi
push edi
xor edi, edi
push 0x3f
lea eax, [esp + 0x185]
push edi
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edi
mov byte [esp + 0x18c], 0
call fcn.004f67e0
push 0x103
lea ecx, [esp + 0x3e1]
push edi
push ecx
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x3e8], 0
call fcn.004f67e0
push 0x103
lea edx, [esp + 0x2e5]
push edi
push edx
mov byte [esp + 0x2ec], 0
call fcn.004f67e0
xor eax, eax
push 0x13c
lea ecx, [esp + 0x6c]
push edi
push ecx
mov word [esp + 0x50], ax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], edi
call fcn.004f67e0
add esp, 0x30
push 0x104
lea edx, [esp + 0x1c4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1c0]
push 0x5c
push eax
call fcn.004f6860
add esp, 8
cmp eax, edi
jne 0x4724ee
mov ecx, dword [str.usermonfile.dat]
mov edx, dword [0x5468cc]
mov eax, dword [0x5468d0]
mov dword [esp + 0x1c0], ecx
mov ecx, dword [0x5468d4]
mov dword [esp + 0x1c4], edx
mov dx, word [0x5468d8]
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x1cc], ecx
mov word [esp + 0x1d0], dx
jmp 0x472536
mov byte [eax], 0
lea eax, [esp + 0x1c0]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x472500
mov ecx, dword [str.usermonfile.dat]
mov edx, dword [0x5468cc]
mov dword [eax], ecx
mov ecx, dword [0x5468d0]
mov dword [eax + 4], edx
mov edx, dword [0x5468d4]
mov dword [eax + 8], ecx
mov cx, word [0x5468d8]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea edx, [esp + 0x1d8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x472571
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 9
ja 0x472588
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5d8]
xor ecx, esp
call fcn.004f6592
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x10000]
push eax
call fcn.00496dbd
mov ebx, eax
add esp, 4
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x47256a
lea eax, [edi + 0x10000]
push eax
push 0
push ebx
call fcn.004f67e0
add esp, 0xc
push 0
lea eax, [esp + 0x34]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jne 0x4725f5
push ebx
call fcn.00496dc8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5d8]
xor ecx, esp
call fcn.004f6592
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x20]
push eax
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [esp + 0x188]
push ecx
mov dword [esp + 0x18], eax
call fcn.0044c2a0
lea edx, [esp + 0x18c]
add esp, 0xc
mov ecx, 0x20
mov eax, ebx
sub edx, ebx
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x4725d5
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x472621
lea esi, [edi + edi + 0x10000]
push esi
call fcn.00496dbd
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
test edi, edi
je 0x4725d5
push esi
push 0
push edi
call fcn.004f67e0
mov edx, dword [esp + 0x18]
push edx
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00481120
add esp, 0x1c
cmp dword [esp + 0x1c], 0xffffffff
jne 0x47269a
push edi
call fcn.00496dc8
push ebx
call fcn.00496dc8
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5d8]
xor ecx, esp
call fcn.004f6592
mov esp, ebp
pop ebp
ret
cmp byte [edi + 8], 0
lea eax, [edi + 8]
mov dword [esp + 0xc], 0
mov esi, edi
je 0x4727df
lea edx, [esp + 0x4d8]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4726c0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4dc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4727cb
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [esp + 0x2a]
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x3e4]
push str._4d__02d__02d__02d:_02d
push eax
call fcn.004f726c
push 0x104
lea ecx, [esp + 0x2e8]
push 0
push ecx
call fcn.004f67e0
push ebx
push edi
lea edx, [esp + 0x2f8]
push str._I64u
push edx
call fcn.004f726c
mov ebx, dword [esp + 0x74]
add esp, 0x38
push 0
push 0
lea eax, [esp + 0x3d8]
push eax
lea ecx, [esp + 0x2d4]
push ecx
lea edx, [esp + 0x4e8]
push edx
mov eax, edx
push eax
push 0
mov ecx, ebx
call fcn.00471b20
mov ecx, dword [esi]
mov edi, dword [esp + 0x18]
push ecx
push edi
lea ecx, [ebx + 0x670]
call fcn.004adde4
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x38]
inc edi
lea ecx, [eax + edx + 9]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0xc]
lea esi, [edi + edx]
cmp byte [esi + 8], 0
lea eax, [esi + 8]
jne 0x4726b1
push edi
call fcn.00496dc8
push ebx
call fcn.00496dc8
mov ecx, dword [esp + 0x5ec]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004f6592
mov esp, ebp
pop ebp
ret