Function at 0x410370
Capabilities:
Get file size
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x449efb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov edi, dword [0x467bb4]
xor ebp, ebp
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x17], 1
cmp edi, ebp
jbe 0x4105c7
jmp 0x4103d2
xor ebp, ebp
push 0x206
lea ecx, [esp + 0x36]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x3c], ax
call fcn.00437170
push esi
push edi
lea edx, [esp + 0x44]
push 0x458a58
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebx + 0xb1c]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [ebx + 0xdec]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x20], eax
call fcn.004163a8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x410595
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x248], ebp
mov ecx, dword [0x467bb4]
push ecx
lea edx, [ebx + 0x414]
push edx
lea eax, [ebx + 0x20c]
push eax
lea ecx, [esp + 0x28]
push str._s_s__d__d.tmp
push ecx
call fcn.00404600
add esp, 0x18
push ebp
push 0x80
push 3
lea edx, [esp + 0x30]
push edx
push 1
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x2c]
push SysReAllocStringLen
push ebp
mov dword [esp + 0x40], 0xc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4104ca
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test edi, edi
je 0x4104c2
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ebx, dword [esp + 0x1c]
jmp 0x4104cc
xor eax, eax
cmp eax, dword [esp + 0x20]
jb 0x41059f
mov eax, dword [0x467bb4]
push esi
push eax
lea ecx, [esp + 0x38]
push str.PARTS__ld__ld_ASSIGNEDSIZE
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebx + 0xb1c]
push eax
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [ebx + 0xdec]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
test edi, edi
je 0x41059f
mov ecx, dword [0x467bb4]
mov eax, dword [esp + 0x24c]
xor edx, edx
div ecx
cmp ecx, 1
jne 0x41052f
cmp edi, eax
jmp 0x41055b
test esi, esi
jne 0x410537
cmp edi, eax
jmp 0x41055b
dec ecx
cmp esi, ecx
jne 0x41054a
mov ecx, dword [esp + 0x24c]
imul eax, esi
sub ecx, eax
jmp 0x410559
lea ecx, [esi + 1]
imul ecx, eax
mov edx, eax
imul edx, esi
dec ecx
sub ecx, edx
inc ecx
cmp edi, ecx
jne 0x41059f
lea eax, [ebp - 0x10]
mov dword [esp + 0x244], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [0x467bb4]
inc esi
cmp esi, edi
jb 0x4103d0
jmp 0x4105c7
push 0x80004005
call fcn.004017a0
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x244], edx
mov byte [esp + 0x17], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004331c4
add esp, 0x234
ret 4