Function at 0x405170
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x449f13
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.00432230
mov eax, dword [0x464ca0]
xor eax, esp
mov dword [esp + 0x1048], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464ca0]
xor eax, esp
push eax
lea eax, [esp + 0x1060]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1070]
mov eax, dword [esp + 0x107c]
mov ebp, dword [esp + 0x1074]
mov edi, dword [esp + 0x1078]
mov dword [esp + 0x20], ecx
xor ebx, ebx
add ecx, 0x28
cmp esi, ebx
mov dword [esp + 0x24], eax
jne 0x4051e0
xor eax, eax
jmp 0x405201
mov eax, esi
lea edx, [eax + 2]
mov dword [esp + 0x18], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4051f0
sub eax, dword [esp + 0x18]
sar eax, 1
push eax
push esi
call fcn.00402b00
mov ecx, dword [esp + 0x20]
add ecx, 0x2c
cmp ebp, ebx
jne 0x405217
xor eax, eax
jmp 0x405231
mov eax, ebp
lea edx, [eax + 2]
mov dword [esp + 0x28], edx
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x405220
sub eax, dword [esp + 0x28]
sar eax, 1
push eax
push ebp
call fcn.00402b00
mov ecx, dword [esp + 0x20]
add ecx, 0x30
cmp edi, ebx
jne 0x405247
xor eax, eax
jmp 0x40525f
mov eax, edi
lea ebp, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x405250
sub eax, ebp
sar eax, 1
push eax
push edi
call fcn.00402b00
push esi
lea ecx, [esp + 0x3c]
call fcn.004043e0
push str.version.txt
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x1074], ebx
call fcn.00403590
push 0x466158
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x1080], 1
call fcn.004034d0
add esp, 0x18
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4052ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x38]
call fcn.004043e0
push str.Update_version.ini
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x1074], 5
call fcn.00403590
add esp, 0xc
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40533f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x34]
call fcn.004043e0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Update_
push eax
push ecx
mov byte [esp + 0x1078], 8
call fcn.00403590
add esp, 0xc
call fcn.00408170
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x1068], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
push ecx
push edx
mov ecx, ebp
call fcn.00403840
test al, al
je 0x40564f
push 0x3fe
lea ecx, [esp + 0x62]
push ebx
push ecx
mov word [esp + 0x68], bx
call fcn.004317a0
push 0x3fe
lea edx, [esp + 0x86e]
push ebx
push edx
mov word [esp + 0x874], bx
call fcn.004317a0
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x18
push eax
push 0x200
lea ecx, [esp + 0x64]
push ecx
push 0x44e9d8
push str.Version
push str.UpCfg
call esi
mov edx, dword [esp + 0x14]
push edx
push 0x200
lea eax, [esp + 0x864]
push eax
push 0x44e9d8
push str.Force
push str.UpCfg
call esi
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push ebx
push str.KillClient
push str.UpCfg
call edi
cmp eax, 1
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
sete dl
push ecx
mov byte [eax], dl
call fcn.00408230
push str.Update_version.ini
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x1078], 9
call fcn.00403590
add esp, 0x10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3fe
lea ecx, [esp + 0x462]
push ebx
push ecx
mov word [esp + 0x468], bx
call fcn.004317a0
push 0x3fe
lea edx, [esp + 0xc6e]
push ebx
push edx
mov word [esp + 0xc74], bx
call fcn.004317a0
mov eax, dword [esp + 0x34]
add esp, 0x18
push eax
push 0x200
lea ecx, [esp + 0x464]
push ecx
push 0x44e9d8
push str.Version
push str.UpCfg
call esi
mov edx, dword [esp + 0x1c]
push edx
push 0x200
lea eax, [esp + 0xc64]
push eax
push 0x44e9d8
push str.Force
push str.UpCfg
call esi
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push str.KillClient
push str.UpCfg
call edi
push ecx
lea edx, [esp + 0x460]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004043e0
lea ecx, [esp + 0x40]
call fcn.0040b150
mov esi, eax
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x1070], 0xc
call fcn.004043e0
lea ecx, [esp + 0x50]
call fcn.0040b150
mov ecx, dword [eax + 0xc]
cmp ecx, dword [esi + 0xc]
lea ecx, [esp + 0x4c]
setg bl
call fcn.004080a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1068], 0xb
call fcn.004080a0
test bl, bl
je 0x405620
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4055c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x1068], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x4056a0
mov ecx, ebp
call fcn.00404d70
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1068], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40564f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1068], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405677
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1068], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40569e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x1060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1048]
xor ecx, esp
call fcn.00432214
add esp, 0x1058
ret 0x10