Function at 0x47c040
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x458
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.0047c660
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x168]
push 0x100
push eax
push 0
call ebx
lea ecx, [esp + 0x368]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x26c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x174]
push ecx
push edx
call fcn.00480329
lea eax, [esp + 0x7c]
push str..ini
lea ecx, [esp + 0x280]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x188]
push edx
push eax
call fcn.00480298
add esp, 0x28
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x168]
lea edx, [esp + 0x68]
push ecx
push 0x100
push edx
push 0x49d534
push str.game_guid
push str.network
call ebp
test eax, eax
je 0x47c0ff
lea eax, [esp + 0x20]
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0047d5b0
add esp, 8
test al, al
jne 0x47c1d3
mov esi, dword [esp + 0x46c]
test esi, esi
je 0x47c1d3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x47c1c4
push esi
call fcn.0047d8a0
mov edi, eax
add esp, 4
test edi, edi
je 0x47c13d
push 0x5c
push esi
call fcn.0047eab0
mov esi, eax
add esp, 8
inc esi
lea edx, [esp + 0x10]
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47c1c4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x268]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.game_guid
push eax
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x47c1a0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x268]
push eax
push ecx
call fcn.0047d5b0
add esp, 8
test al, al
jne 0x47c1d3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
push 0x7d0
call fcn.0047e2df
add esp, 4
lea edx, [esp + 0x68]
mov dword [0x52656c], eax
mov esi, eax
push 0x100
push edx
push 0
call ebx
lea eax, [esp + 0x368]
lea ecx, [esp + 0x168]
push eax
lea edx, [esp + 0x26c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.00480329
lea edx, [esp + 0x17c]
push str..ini
lea eax, [esp + 0x280]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.00480298
add esp, 0x28
xor edi, edi
xor eax, eax
mov ebx, esi
lea esi, [eax + 1]
lea eax, [esp + 0x40]
push esi
push str.server
push str._s_i
push eax
call fcn.0047e3b7
add esp, 0x10
lea ecx, [esp + 0x68]
lea edx, [esp + 0x168]
lea eax, [esp + 0x40]
push ecx
push 0x100
push edx
push 0x49d534
push eax
push str.network
call ebp
test eax, eax
je 0x47c2a4
lea ecx, [esp + 0x168]
push ecx
call fcn.0048a1fd
add esp, 4
mov dword [ebx], eax
inc edi
add ebx, 4
mov eax, esi
cmp eax, 0x10
jl 0x47c24c
lea edx, [esp + 0x68]
push 0x100
push edx
push 0
mov dword [0x52bdc4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x368]
lea ecx, [esp + 0x168]
push eax
lea edx, [esp + 0x26c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.00480329
lea edx, [esp + 0x17c]
push str..ini
lea eax, [esp + 0x280]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.00480298
add esp, 0x28
xor ebx, ebx
xor eax, eax
mov edi, 0x52be20
lea esi, [eax + 1]
lea eax, [esp + 0x40]
push esi
push str.meta_server
push str._s_i
push eax
call fcn.0047e3b7
add esp, 0x10
lea ecx, [esp + 0x68]
lea edx, [esp + 0x168]
lea eax, [esp + 0x40]
push ecx
push 0x100
push edx
push 0x49d534
push eax
push str.network
call ebp
test eax, eax
je 0x47c375
lea ecx, [esp + 0x168]
push ecx
call fcn.0048a1fd
add esp, 4
mov dword [edi], eax
inc ebx
add edi, 4
mov eax, esi
cmp eax, 0x10
jl 0x47c31d
mov ecx, dword [0x52bdc4]
mov esi, dword [esp + 0x46c]
mov eax, ebx
test ecx, ecx
mov dword [0x52be1c], eax
jne 0x47c3b9
test esi, esi
je 0x47c3b9
mov edx, dword [0x52656c]
push esi
push str.server
push 0x10
push edx
call fcn.0047d980
mov dword [0x52bdc4], eax
mov eax, dword [0x52be1c]
add esp, 0x10
test eax, eax
jne 0x47c3db
test esi, esi
je 0x47c3db
push esi
push str.meta_server
push 0x10
push 0x52be20
call fcn.0047d980
add esp, 0x10
mov dword [0x52be1c], eax
mov ebx, dword [esp + 0x14]
push eax
push 0x52be20
mov ecx, ebx
call fcn.0047daa0
mov edi, eax
mov eax, dword [0x52bdc4]
add eax, edi
test eax, eax
jne 0x47c411
mov eax, dword [0x52be1c]
test eax, eax
jne 0x47c411
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
test edi, edi
je 0x47c474
xor esi, esi
push esi
mov ecx, ebx
call fcn.0047dde0
mov ecx, dword [0x52bdc4]
mov edx, dword [0x52656c]
add ecx, esi
inc esi
cmp esi, edi
mov dword [edx + ecx*4], eax
jne 0x47c417
mov ecx, dword [0x52bdc4]
xor esi, esi
add ecx, edi
mov dword [0x52bdc4], ecx
mov eax, dword [ebx]
test eax, eax
jle 0x47c461
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*4]
push ecx
call fcn.0047e2ed
mov eax, dword [ebx]
add esp, 4
inc esi
cmp esi, eax
jl 0x47c44b
mov edx, dword [ebx + 4]
push edx
call fcn.0047e2ed
add esp, 4
mov dword [ebx + 4], 0
call fcn.0048a3e0
mov esi, eax
push 4
lea edx, [esp + 0x34]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ebp, eax
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x10], edi
jle 0x47c4bd
lea ebx, [esp + 0x30]
mov ecx, dword [ebx]
push 0x499964
push ecx
call fcn.00489e30
add esp, 8
test eax, eax
je 0x47c4b5
inc edi
add ebx, 4
cmp edi, ebp
jl 0x47c497
jmp 0x47c4b9
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, esi
lea edi, [esp + edx*4 + 0x30]
mov edx, dword [esp + edx*4 + 0x30]
call dword [eax + 4]
test al, al
jne 0x47c4ea
mov ecx, ebx
call fcn.0047c660
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
mov ecx, dword [edi]
mov eax, dword [esi]
xor ebp, ebp
mov edx, 0x52be6c
push ebp
push ecx
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x47c516
mov ecx, ebx
call fcn.0047c660
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xa
mov ecx, dword [0x52be6c]
mov edx, dword [ecx]
call dword [edx + 8]
push 0xa
call edi
dec esi
jne 0x47c521
mov ecx, dword [0x52be6c]
mov edx, 0x52be70
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x47c55d
mov ecx, ebx
call fcn.0047c660
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x458
ret 4
push 0x416e0
call fcn.0047e2df
mov edi, eax
mov ecx, 0x105b8
mov eax, 0xeaeaeaea
mov dword [0x52bdc0], edi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [0x526594], ecx
mov ecx, dword [esp + 0x30]
mov dword [0x526598], edx
mov edx, dword [0x52bdc0]
mov dword [0x52659c], eax
mov eax, dword [0x52be1c]
mov dword [0x5265a0], ecx
mov ecx, dword [0x52656c]
mov dword [0x526570], edx
mov edx, dword [0x52bdc4]
mov dword [0x526588], eax
mov eax, dword [0x499960]
mov dword [0x52658c], ecx
mov ecx, dword [0x52be70]
mov dword [0x526574], ebp
mov dword [0x52657c], 0xfa
mov word [0x526580], 0x88b8
mov dword [0x526584], 0x52be20
mov dword [0x526590], edx
mov dword [0x5265a4], ebp
mov dword [0x5265a8], 0xffffffff
mov dword [0x5265ac], ebp
mov dword [0x5265b8], ebp
mov dword [0x5265bc], 0xff
mov dword [0x5265b0], eax
mov dword [0x5265b4], eax
mov eax, dword [ecx]
add esp, 4
mov edx, 0x526570
call dword [eax + 4]
pop edi
pop esi
pop ebp
mov dword [0x52be08], 1
mov al, 1
pop ebx
add esp, 0x458
ret 4