Function at 0x45718d
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x4d6f0f
call fcn.004b6730
lea eax, [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040254f
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040254f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040264d
call fcn.0049219b
push eax
lea ecx, [ebp - 0x10]
call fcn.00402802
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040254f
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00411ec6
push 0x5410f8
mov ecx, edi
call fcn.0040ca34
test eax, eax
je 0x45722d
push str.string134
mov ecx, edi
call fcn.0040ca34
test eax, eax
je 0x45722d
push str.string129
mov ecx, edi
call fcn.0040ca34
test eax, eax
jne 0x457231
mov byte [ebp + 0x14], 1
cmp byte [ebp + 0x14], bl
jne 0x457255
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
lea ecx, [esi + 4]
call fcn.004a059e
test eax, eax
je 0x457255
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x4573e8
push 0x2000
push ebx
mov edi, 0x57c4e0
push edi
call fcn.004b62d0
add esp, 0xc
push dword [esi + 0x38]
push 0x1000
push edi
push 0x52dc10
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x10]
call fcn.0040264d
cmp word [0x57c4e0], 0x22
jne 0x45729e
push 0x20
pop eax
mov word [0x57c4e0], ax
cmp word [0x57c4e0], bx
je 0x4572fc
push edi
lea ecx, [ebp - 0x10]
call fcn.0040272d
push 0x53d804
push 0x541134
lea eax, [ebp - 0x10]
push eax
call fcn.00411d27
push 0x54113c
push 0x541140
lea eax, [ebp - 0x10]
push eax
call fcn.00411d27
push 0x541148
push 0x54114c
lea eax, [ebp - 0x10]
push eax
call fcn.00411d27
push 0x530c3c
push 0x541154
lea eax, [ebp - 0x10]
push eax
call fcn.00411d27
lea ebx, [ebp - 0x10]
call fcn.0040c8c6
mov ebx, eax
call fcn.0040c913
push 0x5410f8
lea ecx, [ebp - 0x14]
call fcn.0040ca34
test eax, eax
je 0x45733e
push str.string134
lea ecx, [ebp - 0x14]
call fcn.0040ca34
test eax, eax
je 0x45733e
push str.string129
lea ecx, [ebp - 0x14]
call fcn.0040ca34
test eax, eax
jne 0x45736b
cmp dword [0x57a0d4], 0
jne 0x457363
mov eax, dword [0x57a0e4]
cmp dword [eax - 0xc], 0
je 0x45736b
push eax
push str._888__303_3189
lea eax, [ebp - 0x10]
push eax
call fcn.00411d27
jmp 0x45736b
lea ecx, [ebp - 0x10]
call fcn.0040264d
push str.string72
lea ecx, [ebp - 0x14]
call fcn.0040ca34
test eax, eax
je 0x45738d
push str.string66
lea ecx, [ebp - 0x14]
call fcn.0040ca34
test eax, eax
jne 0x4573d4
call fcn.0049219b
push eax
lea ecx, [ebp + 0xc]
call fcn.00402802
mov byte [ebp - 4], 5
call fcn.0045d5a5
push eax
lea eax, [ebp + 0xc]
push 0x5305bc
push eax
call fcn.00402a07
mov edi, dword [ebp + 0xc]
add esp, 0xc
push edi
push 0x5411a4
lea eax, [ebp - 0x10]
push eax
call fcn.00411d27
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 4
call fcn.00402845
cmp byte [ebp + 0x14], 0
jne 0x4573e8
push dword [ebp - 0x10]
lea ecx, [esi + 4]
push dword [ebp - 0x18]
call fcn.004122ec
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004022fa
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402845
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
call fcn.004b6808
ret 0x10