Function at 0x41f330
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount
Delete file
Get kernel32 base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49db60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [str.serverConfig.dat]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401d30
lea ecx, [esp + 0x18]
push ecx
call fcn.004051d0
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
push eax
push 0
push str.ServerNumber
push str.LoginServer
call edi
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f3b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
push ecx
push str.Number_of_login_server:__d
push edx
call fcn.00427200
push eax
call fcn.00426f60
mov eax, dword [str.serverConfig.dat]
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401d30
lea ecx, [esp + 0x18]
push ecx
call fcn.004051d0
mov eax, dword [eax]
add esp, 8
push eax
push 0
push str.ServerNumber
push str.PatchServer
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f41f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x64]
push ecx
push str.Number_of_patch_server:__d
push edx
call fcn.00427200
push eax
call fcn.00426f60
mov eax, dword [esi + 0x60]
add esp, 0x10
test eax, eax
je 0x41f89f
cmp dword [esi + 0x54], 0
je 0x41f89f
xor edi, edi
test eax, eax
jbe 0x41f59e
mov bl, 3
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41f775
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push edi
lea ecx, [esp + 0x1c]
push str.Server_d
push ecx
mov dword [esp + 0x44], 0
call fcn.00401990
mov ebp, dword [esp + 0x24]
mov edx, dword [str.serverConfig.dat]
add esp, 0xc
push str.NULL
push ebp
push str.LoginServer
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401d30
lea eax, [esp + 0x2c]
push eax
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x4c], 1
call fcn.004053e0
add esp, 0x14
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x24]
call fcn.0041d6a0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 4]
call fcn.0041e8c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x64]
push ecx
push edi
push str.__d__Save_login_server_IP:__s
push edx
call fcn.00427200
push eax
call fcn.00426f60
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f56d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f592
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 1
cmp edi, dword [esi + 0x60]
jb 0x41f45b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00476af0
add esp, 4
call fcn.00476afd
cdq
idiv dword [esi + 0x60]
mov eax, dword [esi + 0x64]
push edx
push str.Select_Login_Server__:__d
push eax
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], edx
call fcn.00427200
push eax
call fcn.00426f60
mov ecx, dword [esi + 0x44]
lea ebx, [esi + 0x44]
add esp, 0x10
cmp dword [ecx - 0xc], 0
je 0x41f699
mov edi, dword [esi + 0x2c]
cmp dword [esi + 0x28], edi
lea ebp, [esi + 0x24]
jbe 0x41f5f4
call fcn.00475f95
mov eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
jbe 0x41f609
call fcn.00475f95
mov eax, dword [esp + 0x20]
push edi
push ebp
push eax
push ebp
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.0041e790
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
lea edi, [esi + 4]
mov dword [esp + 0x1c], eax
jbe 0x41f62d
call fcn.00475f95
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x20], eax
jbe 0x41f642
call fcn.00475f95
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ecx
push edi
push eax
push edi
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.0041e250
push ebx
mov ecx, ebp
call fcn.0041d6a0
mov eax, dword [ebx]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0041e8c0
mov ecx, dword [ebx]
mov edx, dword [esi + 0x64]
push ecx
xor eax, eax
push str.ForcedLogin_:__s210.247.243.64
push edx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x58], eax
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0x10
xor ebx, ebx
cmp dword [esi + 0x54], ebx
jbe 0x41f839
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41f775
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x18]
push str.Server_d
push ecx
mov dword [esp + 0x44], 4
call fcn.00401990
mov edx, dword [esp + 0x20]
mov eax, dword [str.serverConfig.dat]
add esp, 0xc
push str.NULL
push edx
push str.PatchServer
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00401d30
lea ecx, [esp + 0x30]
push ecx
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x4c], 5
call fcn.004053e0
add esp, 0x14
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f74b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x34]
call fcn.0041d6a0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi + 0x18]
test ecx, ecx
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], eax
jne 0x41f77f
xor ebp, ebp
jmp 0x41f787
push 0x80004005
call fcn.00401090
mov ebp, dword [edi + 8]
sub ebp, ecx
sar ebp, 2
test ecx, ecx
je 0x41f7a4
mov edx, dword [edi + 0xc]
sub edx, ecx
sar edx, 2
cmp ebp, edx
jae 0x41f7a4
mov ecx, dword [edi + 8]
mov dword [ecx], eax
add ecx, 4
mov dword [edi + 8], ecx
jmp 0x41f7c3
mov ebp, dword [edi + 8]
cmp ecx, ebp
jbe 0x41f7b0
call fcn.00475f95
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.0041e7f0
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x64]
push edx
push ebx
push str.__d__Save_patch_server_IP:__s
push eax
call fcn.00427200
push eax
call fcn.00426f60
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x38], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f805
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 dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f82d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, dword [esi + 0x54]
jb 0x41f6a4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00476af0
add esp, 4
call fcn.00476afd
cdq
idiv dword [esi + 0x54]
mov ecx, dword [esi + 0x64]
push edx
push str.Select_Patch_Server__:__d
push ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x4c], edx
call fcn.00427200
push eax
call fcn.00426f60
mov edx, dword [esi + 0x64]
add esp, 0x10
push str.ConfigData_Ok
push edx
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x64]
push str.ConfigDataServer_is_Err_Ini_File._ServerNum_0_
push eax
call fcn.00427200
push eax
call fcn.00426f60
mov edx, dword [str.serverConfig.dat]
add esp, 8
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00401d30
lea eax, [esp + 0x24]
push eax
call fcn.004051d0
mov ecx, dword [eax]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f8fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret