Function at 0x437a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9328
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
cmp byte [esp + 0x38], 3
sete bl
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
push eax
call fcn.00437400
movzx edx, al
movzx ecx, bl
lea ecx, [ecx + ecx*4]
mov byte [esp + 0x38], al
lea eax, [edx + ecx*8]
mov cl, byte [esp + 0x28]
imul eax, eax, 0x2c
mov dl, byte [esp + 0x2c]
mov byte [eax + ebp + 4], cl
xor ecx, ecx
mov byte [eax + ebp + 5], dl
mov edx, dword [esp + 0x30]
lea esi, [eax + ebp]
lea eax, [esi + 6]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov byte [eax + 0x20], cl
movzx ecx, byte [esp + 0x34]
push ecx
push edx
push eax
call fcn.00476f90
add esp, 0xc
mov byte [esi + 0x2b], bl
mov ecx, dword [0x55865c]
push 0
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
test eax, eax
jne 0x437c15
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x437ad1
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
movzx ecx, byte [esp + 0x28]
add ecx, 1
push ecx
lea edx, [esp + 0x30]
push 0x500a30
push edx
mov dword [esp + 0x2c], 0
call fcn.00401990
mov ebx, dword [esp + 0x38]
add esp, 0xc
push 0x4fd458
push ebx
push str.SERVER
call fcn.00405660
add eax, 0x194c
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov edi, esp
push eax
call fcn.00402280
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x48]
add esp, 4
push eax
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x34], 1
call fcn.004053e0
add esp, 0x14
add esi, 0x2c
push eax
mov ecx, esi
mov byte [esp + 0x24], 2
call fcn.00402cc0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437b8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437bb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x569340]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x437bce
push 0x80004005
call fcn.00401090
mov eax, dword [esi]
push ecx
push eax
call fcn.004760c1
add esp, 8
test eax, eax
sete al
test al, al
je 0x437bf1
push 1
push 0x4fd458
mov ecx, esi
call fcn.004017c0
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx eax, byte [esp + 0x38]
mov ecx, dword [esp + 0x14]
add al, 1
push eax
push ecx
mov ecx, ebp
call fcn.004373e0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14