Function at 0x402480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468460
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov edi, ecx
mov eax, dword [edi + 0xc]
mov edx, dword [0x484394]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x484394
mov dword [esp + 0x20], esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], esi
mov esi, ebp
call fcn.00402ed0
mov eax, dword [edi + 0xc]
test al, 3
jne 0x402501
mov ecx, ebp
call fcn.00402320
test eax, eax
je 0x4024f6
mov dword [esp + 0x18], 0x10
mov ebx, 1
mov dword [esp + 0x20], ebx
jmp 0x40255f
test al, 1
je 0x402515
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402bd0
test byte [edi + 0xc], 2
je 0x40252c
mov eax, dword [edi + 4]
mov edx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00402bd0
test byte [edi + 0xc], 8
je 0x402543
mov edi, dword [edi + 8]
mov edx, dword [edi - 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.00402bd0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
mov edx, ebp
call fcn.00401d70
add esp, 4
or dword [esp + 0x18], 0x20
mov ebx, 1
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x402585
push 0x475348
lea ebx, [ecx + 0x28]
mov eax, ebp
call fcn.00403230
mov dword [esp + 0x20], 1
jmp 0x402615
cmp dword [esp + 0x3c], 0
jne 0x402615
push 8
push 0x4751e8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x402615
lea esi, [esp + 0x24]
mov edx, ebp
call fcn.00402de0
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x34], bl
call fcn.00402e00
add esp, 4
mov edi, ebp
mov byte [esp + 0x30], 2
call fcn.00403070
mov byte [esp + 0x30], bl
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 0x4025f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402615
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x484394]
mov eax, dword [edx + 0xc]
mov ecx, 0x484394
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 3
mov ebx, dword [ebp]
lea edi, [esp + 0x1c]
call fcn.00402b50
mov ebx, dword [esp + 0x18]
and ebx, 0xff
push ebx
push 0x47531c
call fcn.00403890
mov edi, dword [esp + 0x24]
mov esi, dword [edi - 0xc]
call fcn.00401f50
movzx ecx, al
push ecx
push ebx
push 0x4753b0
mov edi, ebp
call fcn.004038a0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
sete cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4026cc
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