Function at 0x4c9400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f6d5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov edi, dword [esi + 0x80]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x48], 0xe
je 0x4c9457
mov ecx, edi
call fcn.004dedd0
push edi
call fcn.0055d39b
add esp, 4
mov eax, dword [esi + 0x4c]
lea ebp, [esi + 0x48]
mov edi, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
jmp 0x4c9470
cmp edi, ebx
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
je 0x4c9481
cmp edi, ebp
je 0x4c9486
call fcn.0055d776
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x24]
je 0x4c94e6
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
call fcn.004c5590
mov edi, dword [esp + 0x14]
cmp edi, ebx
jne 0x4c94ae
call fcn.0055d776
mov ecx, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jne 0x4c94bc
call fcn.0055d776
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x10]
cmp edi, ebx
je 0x4c94d7
mov ecx, edi
call fcn.004c6440
push edi
call fcn.0055d39b
add esp, 4
lea ecx, [esp + 0x34]
call fcn.004c5590
mov edi, dword [esp + 0x34]
jmp 0x4c9470
mov eax, dword [esi + 0x58]
lea ebp, [esi + 0x54]
mov edi, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
lea ebx, [ebx]
cmp edi, ebx
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
je 0x4c9511
cmp edi, ebp
je 0x4c9516
call fcn.0055d776
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x2c]
je 0x4c95c1
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
call fcn.004c5690
mov edi, dword [esp + 0x20]
cmp edi, ebx
jne 0x4c9542
call fcn.0055d776
mov ecx, dword [esp + 0x24]
cmp ecx, dword [edi + 4]
jne 0x4c9550
call fcn.0055d776
mov edx, dword [esp + 0x24]
mov edi, dword [edx + 0x10]
cmp edi, ebx
je 0x4c95af
mov eax, dword [edi + 4]
mov ebx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
cmp ebx, dword [edi + 4]
mov dword [edi + 8], 0
je 0x4c9594
mov eax, dword [ebx]
lea ecx, [ebx + 8]
mov dword [esp + 0x14], eax
call fcn.004c42b0
push ebx
call fcn.0055d39b
mov ebx, dword [esp + 0x18]
add esp, 4
cmp ebx, dword [edi + 4]
jne 0x4c9574
mov ecx, dword [edi + 4]
push ecx
call fcn.0055d39b
push edi
mov dword [edi + 4], 0
call fcn.0055d39b
add esp, 8
xor ebx, ebx
lea ecx, [esp + 0x34]
call fcn.004c5690
mov edi, dword [esp + 0x34]
jmp 0x4c9500
mov ecx, dword [esi + 0x64]
lea edi, [esi + 0x60]
mov eax, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
cmp eax, ebx
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
je 0x4c95e6
cmp eax, edi
je 0x4c95ef
call fcn.0055d776
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x2c]
je 0x4c9675
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.004c5790
cmp dword [esp + 0x20], ebx
jne 0x4c9615
call fcn.0055d776
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp ebx, dword [eax + 4]
jne 0x4c9627
call fcn.0055d776
mov ebx, dword [ebx + 0x10]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4c9661
lea ecx, [ebx + 8]
mov byte [esp + 0x48], 0x10
call fcn.00497320
lea ecx, [ebx + 4]
mov byte [esp + 0x48], 0xf
call fcn.00497320
mov ecx, ebx
mov byte [esp + 0x48], 0xe
call fcn.00497320
push ebx
call fcn.0055d39b
add esp, 4
lea ecx, [esp + 0x34]
call fcn.004c5790
mov eax, dword [esp + 0x34]
xor ebx, ebx
jmp 0x4c95d5
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x4c9684
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esi + 0x88]
cmp eax, ebx
je 0x4c96c1
cmp dword [esi + 0x8c], ebx
je 0x4c96b4
push str.HiscoreServer_FreeLocalServer
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [esi + 0x8c]
push ecx
call eax
add esp, 4
mov dword [esi + 0x8c], ebx
mov edx, dword [esi + 0x88]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [esi + 0x7c]
mov byte [esp + 0x48], 0xd
call fcn.00497320
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov byte [esp + 0x5c], 0xc
call fcn.004c85c0
mov eax, dword [edi + 4]
push eax
call fcn.0055d39b
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
push eax
push ebp
push ecx
push ebp
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
mov byte [esp + 0x5c], 0xb
call fcn.004c84f0
mov eax, dword [ebp + 4]
push eax
call fcn.0055d39b
add esp, 4
lea edi, [esi + 0x48]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov byte [esp + 0x5c], 0xa
call fcn.004c8420
mov eax, dword [edi + 4]
push eax
call fcn.0055d39b
add esp, 4
lea ecx, [esi + 0x38]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [esp + 0x48], 9
call fcn.004c6440
lea ecx, [esi + 0x34]
mov byte [esp + 0x48], 8
call fcn.00497320
lea ecx, [esi + 0x30]
mov byte [esp + 0x48], 7
call fcn.00497320
lea ecx, [esi + 0x2c]
mov byte [esp + 0x48], 6
call fcn.00497320
lea ecx, [esi + 0x28]
mov byte [esp + 0x48], 5
call fcn.00497320
lea ecx, [esi + 0x14]
mov byte [esp + 0x48], 4
call fcn.00497320
lea ecx, [esi + 0x10]
mov byte [esp + 0x48], 3
call fcn.00497320
lea ecx, [esi + 0xc]
mov byte [esp + 0x48], 2
call fcn.00497320
mov byte [esp + 0x48], 1
lea ecx, [esi + 8]
call fcn.00497320
lea ecx, [esi + 4]
mov byte [esp + 0x48], 0
call fcn.00497320
mov ecx, esi
mov dword [esp + 0x48], 0xffffffff
call fcn.00497320
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret