Function at 0x4132a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x455868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx + 0x20c]
push edi
test al, al
mov dword [esp + 0x14], ebx
je 0x4135f6
mov al, byte [esp + 0x8c]
mov byte [esp + 0x8c], al
mov eax, dword [esp + 0x90]
test eax, eax
je 0x413304
push 0x31
call fcn.00412e20
push 5
lea ecx, [esp + 0x90]
push 1
push ecx
lea ecx, [ebx + 0x54]
call fcn.004012d0
mov eax, dword [ebx + 0x228]
mov ecx, dword [ebx + 0x224]
lea ebp, [ebx + 0x220]
push eax
push ecx
mov ecx, ebp
call fcn.00417030
mov edx, dword [0x46c2d8]
lea eax, [esp + 0x18]
push edx
push 0x64
push eax
push 0x466eb4
push 0x466eb4
push 0x466998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x466060]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], 0
test ecx, ecx
mov dword [esp + 0x90], eax
je 0x4133ca
lea edx, [esp + 0x18]
shr edx, 0x10
jne 0x413386
xor eax, eax
lea ecx, [esp + 0x18]
mov ax, cx
lea ecx, [esp + 0x90]
push eax
call fcn.004163b0
jmp 0x4133ca
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4133ca
push esi
lea ecx, [esp + 0x94]
call fcn.00402070
test eax, eax
je 0x4133ca
lea eax, [esi + 1]
cmp eax, esi
jb 0x4133ca
mov edi, dword [esp + 0x90]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x90]
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x8c], 1
call fcn.00416e80
mov eax, dword [esp + 0x90]
mov ecx, dword [0x466064]
mov byte [esp + 0x84], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413422
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413422
mov eax, dword [esp + 0x90]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
mov ecx, dword [ebx + 4]
push 0x403
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov cl, byte [esp + 0x8c]
xor eax, eax
test cl, cl
mov dword [ebx + 0xb4], eax
jle 0x413570
lea ebx, [eax + 1]
lea eax, [esp + 0x10]
push ebx
push 0x466ea8
push eax
call fcn.00415e70
mov ecx, dword [0x46c2d8]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push ecx
push 0x64
push edx
push eax
push eax
push 0x466998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x466060]
lea ecx, [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x90], eax
je 0x413502
lea edx, [esp + 0x18]
shr edx, 0x10
jne 0x4134be
xor eax, eax
lea ecx, [esp + 0x18]
mov ax, cx
lea ecx, [esp + 0x90]
push eax
call fcn.004163b0
jmp 0x413502
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x413502
push esi
lea ecx, [esp + 0x94]
call fcn.00402070
test eax, eax
je 0x413502
lea eax, [esi + 1]
cmp eax, esi
jb 0x413502
mov edi, dword [esp + 0x90]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x90]
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x8c], 2
call fcn.00416e80
mov eax, dword [esp + 0x90]
mov ecx, dword [0x466064]
mov byte [esp + 0x84], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41355a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41355a
mov eax, dword [esp + 0x90]
add eax, 0xfffffff4
push eax
call fcn.00427e30
add esp, 4
movsx ecx, byte [esp + 0x8c]
mov eax, ebx
cmp eax, ecx
jl 0x413454
mov ebx, dword [esp + 0x14]
push 0x17ec
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push 0x466e9c
call fcn.004159c0
mov eax, dword [0x46c224]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x90], 3
lea ecx, [eax + 0x280]
call fcn.00415920
push ebp
push 2
mov ecx, eax
mov byte [esp + 0x94], 5
call fcn.00415e60
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ecx, ebx
call fcn.00412cb0
mov eax, dword [esp + 0x10]
mov edx, dword [0x466064]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4135f6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4135f6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00427e30
add esp, 4
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 8