Function at 0x402930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebp
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 1
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402d70
mov esi, dword [esp + 0x20]
mov edi, dword [0x565304]
cmp esi, ebp
je 0x4029b8
cmp esi, dword [0x5652ec]
je 0x4029bd
call fcn.004e48f7
mov ebp, dword [esp + 0x24]
cmp ebp, edi
jne 0x402a78
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x50fd40
call fcn.00401640
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 2
call fcn.00402bd0
lea edi, [esp + 0x1c]
call fcn.00404930
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x50fd40
call fcn.00401640
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 3
call fcn.00402bd0
add eax, 8
lea edi, [esp + 0x18]
call fcn.00404930
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402a60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x402b54
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x50fd40
jmp 0x402adb
test esi, esi
jne 0x402b46
call fcn.004e48f7
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x402a91
call fcn.004e48f7
lea eax, [ebp + 0x10]
lea edi, [esp + 0x1c]
call fcn.00404930
test esi, esi
jne 0x402b4d
call fcn.004e48f7
cmp ebp, dword [esi + 0x18]
jne 0x402ab4
call fcn.004e48f7
lea eax, [ebp + 0x18]
lea edi, [esp + 0x18]
call fcn.00404930
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x402b54
test edi, edi
je 0x402b54
lea eax, [esp + 0x18]
push eax
mov edx, edi
call fcn.0048e340
add esp, 4
test eax, eax
je 0x402b54
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
mov eax, esi
call fcn.004048c0
mov ebx, dword [esp + 0x38]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x30], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b1e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x402bae
mov eax, dword [esi]
jmp 0x402a87
mov esi, dword [esi]
jmp 0x402aaa
mov esi, dword [esp + 0x38]
push esi
mov ecx, 0x510130
call fcn.00401640
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8