Function at 0x406710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534b90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x584cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.FjSnc.ini
lea ecx, [ebp - 0x34]
call fcn.004017d0
mov edi, eax
push 0x561388
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.004017d0
mov ebx, eax
push str.C:Fuji
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004017d0
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00403f60
push edi
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 3
call fcn.00403f60
add esp, 0x18
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40681d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x150]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x146
push ecx
call ebx
test eax, eax
jle 0x406868
lea esp, [esp]
mov edx, dword [esi + 0x150]
push 0
push 1
push 0x144
push edx
call ebx
mov eax, dword [esi + 0x150]
push 0
push 0
push 0x146
push eax
call ebx
test eax, eax
jg 0x406840
xor edi, edi
lea ebx, [ebx]
inc edi
push edi
push str._02d
lea ecx, [ebp - 0x2c]
push 3
push ecx
call fcn.0050f695
mov edx, dword [ebp - 0x28]
add esp, 0x10
push edx
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push str.IP_Address
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4068bd
mov eax, dword [esi + 0x150]
lea edx, [ebp - 0x20]
push edx
push 0
push 0x143
push eax
call ebx
cmp edi, 0xa
jl 0x406870
mov ecx, dword [esi + 0x150]
push 0
push 0
push 0x146
push ecx
call ebx
cmp eax, 1
jl 0x406958
mov edx, dword [esi + 0x150]
push 0
push 0
push 0x14e
push edx
call ebx
call fcn.0040fcc4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406904
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [esi + 0x130]
mov byte [ebp - 4], 9
call fcn.004197f5
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [esi + 0xbc]
call fcn.0041b835
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40697e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed6a
mov esp, ebp
pop ebp
ret