Function at 0x403190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548371
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5a7ee8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x120], edi
call fcn.00411f58
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.00404610
lea ecx, [ebp - 0x114]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4031e3
mov eax, dword [str.defs2.ini]
mov dword [ecx], eax
mov eax, dword [0x559254]
push 0
mov dword [ecx + 4], eax
mov ax, word [0x559258]
push 0
mov word [ecx + 8], ax
mov al, byte [0x55925a]
push 0x14b
push dword [edi + 0xc0]
mov byte [ecx + 0xa], al
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x5000
call fcn.0052d7c9
add esp, 4
mov dword [ebp - 0x11c], eax
mov ebx, eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x130], ebx
push eax
push 0x5000
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
xor esi, esi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x124], esi
test ebx, ebx
je 0x4034f1
cmp esi, eax
jge 0x4034eb
call fcn.0040964e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4034e1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4032a2
xor ecx, ecx
jmp 0x4032b0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032a7
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x128]
call fcn.004023e0
mov edi, dword [ebp - 0x128]
push str.skin
push edi
call fcn.0053e37f
add esp, 8
test eax, eax
je 0x40346d
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x4032ff
cmp ecx, dword [edi - 0x10]
jne 0x4032ff
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40332b
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x4034dc
mov ecx, dword [edi - 0xc]
lea eax, [ebx + 0x10]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
push ecx
push edi
push ecx
push eax
call fcn.0052d101
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x118], esi
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 1
jl 0x403415
push 0x559264
push esi
call fcn.0052d69a
add esp, 8
test eax, eax
je 0x403415
sub eax, esi
test eax, eax
jle 0x403415
lea ecx, [eax + 2]
test ecx, ecx
js 0x4034d2
cmp ecx, dword [esi - 0xc]
jg 0x4034d2
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x118]
call fcn.00402940
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4033f1
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4033dc
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4033dc
push edx
call fcn.00401e30
add esp, 4
mov dword [ebp - 0x138], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4033d1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x138]
lea esi, [eax + 0x10]
mov dword [ebp - 0x118], esi
jmp 0x4033f1
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x118]
call fcn.004023e0
mov esi, dword [ebp - 0x118]
mov edx, dword [ebp - 0x134]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403415
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x120]
push edi
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x151
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403461
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x124]
mov ebx, dword [ebp - 0x11c]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403472
sub ecx, edx
inc ecx
add esi, ecx
mov ecx, ebx
mov dword [ebp - 0x124], esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403490
sub ecx, edx
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
inc ebx
add ebx, ecx
or ecx, 0xffffffff
mov dword [ebp - 0x11c], ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4034c3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4034eb
mov eax, dword [ebp - 0x12c]
jmp 0x403267
push 0x80070057
call fcn.00401e00
call fcn.00402480
push 0x80004005
call fcn.00401e00
mov edi, dword [ebp - 0x120]
push dword [ebp - 0x130]
call fcn.0052d791
add esp, 4
push 0x3f3
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x2710
push 0xffffffffffffff9c
push 0x46f
push eax
call ebx
push 0
push 0
push 0x14e
push dword [edi + 0xc0]
call ebx
mov ecx, edi
call fcn.00403560
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052d1cc
mov esp, ebp
pop ebp
ret