Function at 0x45df80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4e3eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x830
mov eax, dword [str.name]
mov edx, dword [0x51c884]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
mov cl, byte [0x51c88c]
push str.LastClose.ini
lea eax, [esp + 0x20]
xor esi, esi
push 0x52702c
push eax
mov byte [esp + 0x3c], cl
mov dword [esp + 0x3d], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
call fcn.004c5a1c
mov ebx, 1
mov dword [esp + 0x848], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], esi
jmp 0x45dffa
xor esi, esi
mov ecx, dword [esp + 0x18]
lea edi, [ebx - 1]
cmp edi, dword [ecx + 0x7ec]
jge 0x45e275
lea edx, [esp + 0x30]
push 0xa
push edx
push edi
call fcn.004b0136
lea eax, [esp + 0x47]
push 0xa
push eax
push edi
call fcn.004b0136
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x40]
push ecx
push 0x800
push edx
lea eax, [esp + 0x44]
push esi
push eax
push str.LastClose
call ebp
mov al, byte [esp + 0x40]
test al, al
je 0x45e275
push 8
call fcn.004c5dbe
add esp, 4
cmp eax, esi
je 0x45e07f
mov ecx, dword [0x52251c]
mov esi, eax
mov dword [eax], ecx
mov edx, dword [0x52251c]
mov dword [eax + 4], edx
mov dword [esp + 0x24], esi
jmp 0x45e083
mov dword [esp + 0x24], esi
lea eax, [esp + 0x40]
lea ecx, [esi + 4]
push eax
call fcn.004c5910
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push ecx
push 0x800
push edx
lea eax, [esp + 0x38]
push 0
push eax
push str.LastClose
call ebp
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004c5910
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x7f8]
lea ebp, [edx + 0x7f0]
cmp edi, esi
jl 0x45e1ec
mov eax, dword [ebp + 4]
xor edi, edi
cmp ebx, edi
jne 0x45e0f9
cmp eax, edi
je 0x45e0ee
push eax
mov dword [esp + 0x14], esi
call fcn.004c5de7
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x45e228
cmp eax, edi
jne 0x45e122
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call fcn.004c5dbe
add esp, 4
mov dword [ebp + 4], eax
push ebx
push eax
call fcn.00482100
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x45e228
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x45e153
cmp esi, ebx
jge 0x45e143
mov ecx, ebx
lea edx, [eax + esi*4]
sub ecx, esi
push ecx
push edx
call fcn.00482100
mov dword [ebp + 8], ebx
jmp 0x45e228
jle 0x45e14b
sub esi, ebx
mov dword [esp + 0x10], esi
mov dword [ebp + 8], ebx
jmp 0x45e228
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x45e17d
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x45e171
mov eax, 4
jmp 0x45e17d
cmp eax, 0x400
jle 0x45e17d
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x28], eax
jl 0x45e18b
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x28]
lea ecx, [eax*4]
push ecx
call fcn.004c5dbe
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov ebx, eax
mov edx, ecx
mov edi, ebx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, esi
sub ecx, eax
lea edx, [ebx + eax*4]
push ecx
push edx
call fcn.00482100
mov eax, dword [ebp + 4]
push eax
call fcn.004c5de7
mov eax, dword [esp + 0x2c]
mov dword [ebp + 4], ebx
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
mov ebx, esi
jmp 0x45e228
lea ecx, [esi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call fcn.0040d4c0
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 4]
add edx, esi
mov esi, dword [esp + 0x14]
shl edx, 2
push edx
lea ecx, [esi + eax]
lea edx, [esi + eax + 4]
push ecx
push edx
call fcn.004ad9f0
mov ecx, dword [ebp + 4]
mov eax, esi
add esp, 0xc
add eax, ecx
mov dword [eax], 0
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x24]
mov dword [eax + edx], esi
add eax, 4
mov edx, ecx
dec ecx
test edx, edx
jne 0x45e22e
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add ebp, 0x3fffffff
mov edx, dword [ecx + 0x7ec]
inc ebx
add esi, 4
mov dword [esp + 0x20], ebp
lea eax, [ebx - 1]
mov dword [esp + 0x10], ebx
cmp eax, edx
mov dword [esp + 0x14], esi
jl 0x45dff8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x848], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x83c
ret