Function at 0x476800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d1530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0
call fcn.004ad6ed
add esp, 4
mov dword [esp + 0x18], eax
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x34]
test eax, eax
mov edi, dword [esp + 0x30]
mov byte [esp + 0x28], 1
je 0x47688a
mov esi, dword [edi + 0x2c]
push 0
mov ebx, eax
call fcn.0040e180
mov ebx, dword [edi + 0x2c]
push 2
push 0x4db3f0
call fcn.0040e000
push edi
call fcn.004762f0
mov eax, dword [edi + 0x530]
test eax, eax
mov esi, dword [0x534258]
jne 0x47696f
mov eax, dword [edi + 0x52c]
test eax, eax
jne 0x47696f
mov eax, dword [edi + 0x4b4]
test eax, eax
jne 0x47696f
mov edi, dword [0x5119a8]
test edi, edi
je 0x476a29
mov bl, 3
lea ebx, [ebx]
test esi, esi
jle 0x476a29
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4768e9
push eax
call fcn.004ad6ed
add esp, 4
mov edx, dword [edi + 0x40]
mov ecx, dword [0x5342b4]
sub eax, edx
cmp eax, ecx
jae 0x47695f
lea eax, [esp + 0x1c]
push eax
call fcn.0044bd40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.00403e70
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476933
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x47694c
push 0x4ddfc0
lea ecx, [esp + 0x14]
call fcn.0040df60
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00409df0
dec esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x4768d0
jmp 0x476a29
mov edi, dword [0x511dcc]
test edi, edi
je 0x476a29
lea ecx, [ecx]
test esi, esi
jle 0x476a29
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x476999
push eax
call fcn.004ad6ed
add esp, 4
mov edx, dword [edi + 0x40]
mov ecx, dword [0x5342b4]
sub eax, edx
cmp eax, ecx
jae 0x476a1e
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044bd40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00403e70
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4769e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x476a0b
push 0x4ddfc0
call fcn.004ac8fd
add esp, 4
push eax
push 0x4ddfc0
lea ecx, [esp + 0x18]
call fcn.00409df0
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x18]
call fcn.00409df0
dec esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x476980
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
mov edi, dword [esp + 0x30]
je 0x476a66
mov ebx, dword [edi + 0x2c]
push 0x12
push str.X_Try_Ultrapeers:
call fcn.0040e000
mov ebx, esi
mov esi, dword [edi + 0x2c]
push 0
call fcn.0040e180
mov ebx, dword [edi + 0x2c]
push 2
push 0x4db3f0
call fcn.0040e000
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x476a7f
mov edi, dword [edi + 0x2c]
push 2
push 0x4db3f0
mov ebx, edi
call fcn.0040e000
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x476ac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8