Function at 0x406130
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41c983
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x424614
mov dword [esp + 0x28], edi
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x94], edi
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x94], 1
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x94], 2
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x94], 3
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x94], 4
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x94], 5
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
mov dword [esp + 0x50], ebx
call edx
add eax, 0x10
mov dword [esp + 0x54], eax
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0x20]
push str.update.cfg
add ecx, 0x10
push eax
mov byte [esp + 0x9c], 6
call fcn.00408720
add esp, 8
mov byte [esp + 0x94], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4062d3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4062c6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4062c6
call fcn.00409630
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4062b9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062d3
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.004094d0
mov byte [esp + 0x94], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 4
or eax, ecx
jge 0x40631f
mov ecx, 4
lea eax, [esp + 0x18]
call fcn.004095e0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
push 4
push ebp
push 0x4205a4
push str.Count
push str.ServerCount
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x406344
xor eax, eax
jmp 0x406361
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406350
sub eax, edx
js 0x4065e2
cmp eax, dword [ebp - 8]
jg 0x4065e2
push 0xa
push 0
mov dword [ebp - 0xc], eax
push ebp
mov byte [eax + ebp], 0
call fcn.0040cf3a
add esp, 0xc
test eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0
jbe 0x4065d8
mov ebp, dword [esp + 0x20]
add ebp, 1
push ebp
push str.URL_u
lea edi, [esp + 0x2c]
mov dword [esp + 0x34], ebp
call fcn.00409fe0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x400
add esp, 8
or eax, ecx
jge 0x4063d5
mov ecx, 0x400
lea eax, [esp + 0x50]
call fcn.004095e0
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push edx
push 0x400
push ebx
push 0
push eax
push str.UpdateInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4065ec
test ebx, ebx
jne 0x406402
xor eax, eax
jmp 0x406418
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406407
sub eax, edx
js 0x4065e2
cmp eax, dword [ebx - 8]
jg 0x4065e2
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
cmp dword [ebx - 0xc], 0
je 0x4065c4
mov eax, dword [ebx - 0xc]
add eax, 0xfffffff9
lea ecx, [esp + 0x30]
lea edx, [esp + 0x50]
call fcn.00408640
mov byte [esp + 0x94], 8
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4064a7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x406496
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x406496
call fcn.00409630
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x406489
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x2c]
jmp 0x4064a3
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004094d0
mov edi, dword [esp + 0x14]
mov byte [esp + 0x94], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
jle 0x4065c4
push 0x2f
push edi
call fcn.0040cac6
add esp, 8
test eax, eax
je 0x4065c4
sub eax, edi
cmp eax, 0xffffffff
je 0x4065c4
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
call fcn.004086b0
lea ebx, [esp + 0x54]
mov byte [esp + 0x94], 9
call fcn.004085e0
mov byte [esp + 0x94], 6
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40653d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push ecx
lea edi, [esp + 0x64]
mov word [esp + 0x6c], 0x50
call fcn.00406040
mov edx, dword [esp + 0x30]
push edx
lea esi, [esp + 0x88]
call fcn.0040a000
add esp, 0x14
mov byte [esp + 0x94], 0xa
mov ecx, dword [eax]
lea edx, [esp + 0x64]
lea edi, [eax + 4]
push edx
mov dword [esp + 0x64], ecx
call fcn.00406040
mov ebx, dword [esp + 0x9c]
lea eax, [esp + 0x60]
push eax
add ebx, 0x34
lea edi, [esp + 0x48]
mov byte [esp + 0x98], 0xb
call fcn.00408820
lea esi, [esp + 0x64]
call fcn.004060c0
lea esi, [esp + 0x78]
mov byte [esp + 0x94], 6
call fcn.004060c0
mov ebx, dword [esp + 0x50]
mov eax, ebp
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
jb 0x406392
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], 1
jmp 0x4065f0
push 0x80070057
call fcn.004045b0
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x94], 5
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406654
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40667c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 3
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x94], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x94], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406718
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 4