Function at 0x411180
Capabilities:
Create directory
Get common file path
Read .ini file
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450c31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x360
mov eax, dword [0x46aa78]
push ebx
mov dword [esp + 0x35c], eax
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x48], 0
mov ecx, 0x40
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov byte [esp + 0x258], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x259]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x258]
stosw word es:[edi], ax
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [esp + 0x25c]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00430cf0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.Patch
lea ecx, [esp + 0x4c]
push ecx
call ebx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x48]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411240
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.004023a0
cmp dword [esi + 0x18], 0x10
jb 0x411261
mov eax, dword [esi + 4]
jmp 0x411264
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + 0x150], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x151]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x25c]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x158]
push edx
stosb byte es:[edi], al
call fcn.00430cf0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push eax
lea ecx, [esp + 0x154]
push ecx
call ebx
lea eax, [esp + 0x150]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4112c0
sub eax, ecx
push eax
lea edx, [esp + 0x154]
push edx
lea ecx, [esi + 0x20]
call fcn.004023a0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push 0x45675a
push str.Help_URL
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411310
sub eax, ecx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0x3c]
call fcn.004023a0
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push 0x45675a
push str.GameExe
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411351
sub eax, ecx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0x58]
call fcn.004023a0
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push 0x45675a
push str.PatchInfo
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411392
sub eax, ecx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0xf8]
call fcn.004023a0
push str.patchinfo.txt
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00407ac0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x114]
mov dword [esp + 0x380], 0
call fcn.00402270
mov eax, dword [esp + 0x28]
mov ebx, 0x10
cmp eax, ebx
mov dword [esp + 0x374], 0xffffffff
jb 0x4113ff
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00446915
add esp, 4
lea edx, [esp + 0x150]
push edx
push 0x104
lea eax, [esp + 0x50]
push eax
push 0x45675a
push str.NewLauncher
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411430
sub eax, edx
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esi + 0x168]
call fcn.004023a0
push str.NewLaunch.zip
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00407ac0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x184]
mov dword [esp + 0x380], 1
call fcn.00402270
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x374], 0xffffffff
jb 0x411496
mov eax, dword [esp + 0x14]
push eax
call fcn.00446915
add esp, 4
lea ecx, [esp + 0x150]
push ecx
push 0x104
lea edx, [esp + 0x50]
push edx
push 0x45675a
push str.LoginServer
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4114c0
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esi + 0x130]
call fcn.004023a0
push str.loginserver.txt
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.00407ac0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x14c]
mov dword [esp + 0x380], 2
call fcn.00402270
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x374], 0xffffffff
jb 0x411526
mov edx, dword [esp + 0x30]
push edx
call fcn.00446915
add esp, 4
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push 0x45675a
push str.RepairServer
push 0x4569a4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call edi
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411565
sub eax, ecx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0x74]
call fcn.004023a0
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push str.http:__reg.tl.sohu.com_index.jsp
push str.RegURL
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4115a6
sub eax, ecx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0xa4]
call fcn.004023a0
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push str.http:__sde.game.sohu.com_payment_gamechoice.jsp
push str.ChoiceURL
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4115f0
sub eax, ecx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0xc0]
call fcn.004023a0
lea eax, [esp + 0x150]
push eax
push 0x104
lea ecx, [esp + 0x50]
push ecx
push str.http:__10.1.164.119:8090_register.asp
push str.RegisterURL
push 0x4569a4
call edi
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411634
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esi + 0xdc]
call fcn.004023a0
lea eax, [esp + 0x150]
push eax
push 0
push str.DisableSoda
push 0x4569a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne cl
mov byte [esi + 0xa0], cl
cmp dword [0x469234], 0x3a8
je 0x411686
mov byte [esi + 0xa0], 1
lea edx, [esp + 0x150]
push edx
push 0x104
lea eax, [esp + 0x50]
push eax
push 0x45675a
push str.RefrenceUpdateServer
push 0x4569a4
call edi
push 1
push 1
push 0x456a28
lea ecx, [esi + 0x258]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00412fe0
mov al, byte [esi + 0xa0]
add esp, 0x14
test al, al
je 0x4116d4
xor eax, eax
jmp 0x4116de
push 1
call fcn.00422bd0
add esp, 4
test eax, eax
mov dword [esi + 0x98], eax
jne 0x4116f7
push eax
call fcn.00422bd0
add esp, 4
mov dword [esi + 0x98], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push 0x411170
push 0
push 0
mov dword [esi + 0x250], eax
call fcn.00431c39
add esp, 0x18
push eax
mov dword [esi + 0x90], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x364]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc