Function at 0x4fe44b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x36f40]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x80
push 0
lea edx, [ebp - 0x100]
push edx
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x210], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x36a8], 0
je 0x4fe605
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0053534c
add esp, 4
push str.MyExtSNFile.ini
lea edx, [ebp - 0x20c]
push edx
call fcn.0054bed0
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push 0
push str.TotalCount
push 0x5b1ce4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x104], eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x5b1cec
push 0x5b1cf8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
cmp edx, dword [ebp - 0x104]
jge 0x4fe5e9
mov eax, dword [ebp - 0x108]
push eax
push str.SN_d
lea ecx, [ebp - 0x80]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x80
lea eax, [ebp - 0x100]
push eax
push 0x5db778
lea ecx, [ebp - 0x80]
push ecx
push 0x5b1d08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4fe5d0
lea edx, [ebp - 0x100]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x4fe5d0
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x40c4
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
push eax
push 0x5b1d10
lea ecx, [ebp - 0x100]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x100]
push eax
push str.CurrentIdx
push str.ExtSN
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x210], 1
jmp 0x4fe5e7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x29bc], 0x19
mov dword [ebp - 0x210], 0
jmp 0x4fe600
mov edx, dword [ebp + 8]
mov dword [edx + 0x29bc], 0x19
mov dword [ebp - 0x210], 0
jmp 0x4fe76c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x291d8], 1
jne 0x4fe76c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x291dc], 0
je 0x4fe76c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x29d0]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x29d4]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0054d7f0
add esp, 8
test eax, eax
jg 0x4fe755
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x292b0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x29d8]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.005359ec
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x29d0]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.0054d7f0
add esp, 8
test eax, eax
jle 0x4fe6fa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x29d0]
push edx
mov eax, dword [ebp + 8]
add eax, 0x29dc
push eax
call fcn.0054bec0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x29d0]
push edx
mov eax, dword [ebp + 8]
add eax, 0x40c4
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x29d0]
push eax
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x210], 1
jmp 0x4fe753
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x29d0]
push edx
mov eax, dword [ebp + 8]
add eax, 0x29dc
push eax
call fcn.0054bec0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x29d0]
push edx
mov eax, dword [ebp + 8]
add eax, 0x40c4
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x29d0]
push eax
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x210], 1
jmp 0x4fe76c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x29bc], 0x17
mov dword [ebp - 0x210], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x36a8], 0
jne 0x4fe79d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x291dc], 0
je 0x4fe79d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x291d8], 0
jne 0x4fe79d
mov edx, dword [ebp + 8]
mov dword [edx + 0x29bc], 0x17
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x36f40]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x210]
mov esp, ebp
pop ebp
ret