Function at 0x48b23c
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x788
lea ebp, [esp - 4]
mov eax, dword [0x514d34]
xor eax, ebp
mov dword [ebp + 0x788], eax
push 0x30
mov eax, 0x4bc90b
call fcn.00441d06
mov edi, ecx
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x794]
lea eax, [ebp + 0x60]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00465e1a
pop ecx
lea ecx, [ebp + 0x18]
call fcn.00408368
and dword [ebp - 4], 0
lea eax, [ebp + 0x18]
push 0x4c04c8
push ebx
push str._str__str_
push eax
call fcn.00408abf
mov esi, 0x209
lea eax, [ebp + 0x57c]
push esi
push 0
push eax
call fcn.00443240
add esp, 0x1c
lea ecx, [ebp + 0x60]
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push ecx
push esi
lea ecx, [ebp + 0x57c]
push ecx
push 0x4c060e
push eax
push str.RBAR
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x48b46d
lea eax, [ebp + 0x57c]
push eax
call fcn.00447230
pop ecx
test ax, ax
je 0x48b46d
lea eax, [ebp + 0x57c]
mov ecx, edi
push eax
call fcn.00487cec
mov ecx, dword [edi + 0x14]
movzx ebx, ax
cmp bx, cx
movzx edx, cx
movzx eax, bx
cmovae edx, eax
mov dword [ebp - 0x10], ebx
movzx ebx, dx
xor ecx, ecx
push 4
mov esi, ebx
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00441cd2
mov ecx, esi
mov esi, eax
shl ecx, 2
push ecx
push 0
push esi
call fcn.00443240
add esp, 0x10
lea eax, [ebp + 0x57c]
mov ecx, edi
push esi
push eax
call fcn.00488d1c
mov edx, dword [ebp - 0x10]
cmp dx, bx
jae 0x48b373
movzx eax, dx
sub ebx, edx
movzx edx, bx
lea ecx, [esi + eax*4]
mov dword [ecx], eax
inc eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x48b368
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 4]
call fcn.0047833e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 4]
call fcn.00440e34
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x24]
je 0x48b461
mov edi, dword [ebp - 0x38]
lea ecx, [ebp + 0x48]
call fcn.00408368
mov byte [ebp - 4], 1
test edi, edi
jne 0x48b3b8
xor eax, eax
jmp 0x48b3ba
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x14]
mov ecx, dword [eax + ecx*4]
call fcn.00489284
movzx eax, ax
push eax
push ebx
lea eax, [ebp + 0x48]
push str._str___word__5_POS
push eax
call fcn.00408abf
add esp, 0x10
lea ecx, [ebp + 0x30]
call fcn.00408368
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov byte [ebp - 4], 2
push dword [esi + eax*4]
lea eax, [ebp + 0x30]
push str._word__5
push eax
call fcn.00408abf
add esp, 0xc
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], 0x10
lea edx, [ebp + 0x60]
lea eax, [ebp + 0x48]
cmovae ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x5c], 0x10
push edx
cmovae eax, dword [ebp + 0x48]
push ecx
push eax
push str.RBAR
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.0040758b
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0
call fcn.0040758b
mov eax, dword [ebp - 0x14]
inc eax
inc dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x24]
jne 0x48b3a4
mov edi, dword [ebp - 0x20]
push esi
call fcn.00441cdb
pop ecx
mov esi, 0x209
push esi
lea eax, [ebp + 0x57c]
push 0
push eax
call fcn.00443240
push 0x4c04e8
push ebx
lea eax, [ebp + 0x18]
push str._str__str_
push eax
call fcn.00409029
add esp, 0x1c
lea ecx, [ebp + 0x60]
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push ecx
push esi
lea ecx, [ebp + 0x57c]
push ecx
push 0x4c060e
push eax
push str.RBAR
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x48b633
lea eax, [ebp + 0x57c]
push eax
call fcn.00447230
pop ecx
test ax, ax
je 0x48b633
lea eax, [ebp + 0x57c]
mov ecx, edi
push eax
call fcn.00487cec
movzx eax, ax
xor ecx, ecx
movzx esi, ax
mov dword [ebp - 0x3c], eax
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00441cd2
mov ecx, esi
mov dword [ebp - 0x18], eax
shl ecx, 2
push ecx
push 0
push eax
call fcn.00443240
add esp, 0x10
lea eax, [ebp + 0x57c]
mov ecx, edi
push dword [ebp - 0x18]
push eax
call fcn.00488d1c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 4]
call fcn.0047833e
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 4]
call fcn.00440e34
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x30]
je 0x48b62a
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
cmp ax, word [ebp - 0x3c]
je 0x48b627
lea ecx, [ebp + 0x48]
call fcn.00408368
mov byte [ebp - 4], 3
test esi, esi
jne 0x48b57b
xor eax, eax
jmp 0x48b57d
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x10]
mov ecx, dword [eax + ecx*4]
call fcn.00489284
movzx eax, ax
push eax
push ebx
lea eax, [ebp + 0x48]
push str._str___word__5_WIDTH
push eax
call fcn.00408abf
add esp, 0x10
lea ecx, [ebp + 0x30]
call fcn.00408368
push 4
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
movzx eax, ax
push dword [edi + eax*4]
lea eax, [ebp + 0x30]
push str._word__5
push eax
call fcn.00408abf
add esp, 0xc
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], 0x10
lea edx, [ebp + 0x60]
lea eax, [ebp + 0x48]
cmovae ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x5c], 0x10
push edx
cmovae eax, dword [ebp + 0x48]
push ecx
push eax
push str.RBAR
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.0040758b
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0
call fcn.0040758b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
inc ecx
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp - 0x30]
jne 0x48b55d
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00441cdb
pop ecx
mov eax, dword [edi]
test dword [eax + 0x113], 0x400
je 0x48b7c8
lea ecx, [ebp]
call fcn.00408368
push ebx
lea eax, [ebp]
mov byte [ebp - 4], 5
push str._str_SORTCOL
push eax
call fcn.00408abf
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp + 0x60]
add esp, 0xc
lea eax, [ebp]
cmp dword [ebp + 0x14], 0x10
cmovae eax, dword [ebp]
push ecx
push 0
push eax
push str.RBAR
call esi
movzx eax, ax
lea ecx, [edi + 4]
cmp ax, word [ecx + 0x10]
jae 0x48b7bc
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0047833e
mov ecx, eax
call fcn.004a8be9
lea ecx, [ebp + 0x48]
call fcn.00408368
push ebx
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 6
push str._str__SORTCOL
push eax
call fcn.00408abf
add esp, 0xc
lea ecx, [ebp + 0x30]
call fcn.00408368
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
test eax, eax
jne 0x48b6dc
xor ecx, ecx
jmp 0x48b6de
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
dec eax
and eax, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
call fcn.00489284
movzx eax, ax
push eax
lea eax, [ebp + 0x30]
push str._word__5
push eax
call fcn.00408abf
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp + 0x30]
add esp, 0xc
lea edx, [ebp + 0x60]
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x48]
cmovae ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x5c], 0x10
push edx
cmovae eax, dword [ebp + 0x48]
push ecx
push eax
push str.RBAR
call edi
push ebx
lea eax, [ebp + 0x48]
push str._str_SORTDIR
push eax
call fcn.00409029
add esp, 0xc
lea ecx, [ebp + 0x60]
cmp dword [ebp + 0x5c], 0x10
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push ecx
push 0
push eax
push str.RBAR
call esi
push dword [ebp - 0x1c]
mov bl, al
lea eax, [ebp + 0x48]
push str._str__SORTDIR
push eax
call fcn.00409029
movzx eax, bl
push eax
lea eax, [ebp + 0x30]
push str._byte__5
push eax
call fcn.00409029
add esp, 0x18
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], 0x10
lea edx, [ebp + 0x60]
lea eax, [ebp + 0x48]
cmovae ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x5c], 0x10
push edx
cmovae eax, dword [ebp + 0x48]
push ecx
push eax
push str.RBAR
call edi
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.0040758b
push 0
push 1
lea ecx, [ebp + 0x48]
call fcn.0040758b
push 0
push 1
lea ecx, [ebp]
call fcn.0040758b
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.0040758b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x788]
xor ecx, ebp
call fcn.00441a5e
lea esp, [ebp + 0x78c]
pop ebp
ret 4