Function at 0x402480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465c20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e4f0]
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 [0x48134c]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x48134c
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.00402eb0
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.00402bb0
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.00402bb0
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.00402bb0
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 0x471f08
lea ebx, [ecx + 0x28]
mov eax, ebp
call fcn.00403210
mov dword [esp + 0x20], 1
jmp 0x402615
cmp dword [esp + 0x3c], 0
jne 0x402615
push 8
push 0x471da8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x402615
lea esi, [esp + 0x24]
mov edx, ebp
call fcn.00402dc0
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x34], bl
call fcn.00402de0
add esp, 4
mov edi, ebp
mov byte [esp + 0x30], 2
call fcn.00403050
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 [0x48134c]
mov eax, dword [edx + 0xc]
mov ecx, 0x48134c
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.00402b30
mov ebx, dword [esp + 0x18]
and ebx, 0xff
push ebx
push 0x471edc
call fcn.00403870
mov edi, dword [esp + 0x24]
mov esi, dword [edi - 0xc]
call fcn.00401f50
movzx ecx, al
push ecx
push ebx
push 0x471f70
mov edi, ebp
call fcn.00403880
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