Function at 0x402980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a090
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x552a7c]
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 [0x55702c]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x55702c
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.00403540
mov eax, dword [edi + 0xc]
test al, 3
jne 0x402a01
mov ecx, ebp
call fcn.00402800
test eax, eax
je 0x4029f6
mov dword [esp + 0x18], 0x10
mov ebx, 1
mov dword [esp + 0x20], ebx
jmp 0x402a5f
test al, 1
je 0x402a15
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403130
test byte [edi + 0xc], 2
je 0x402a2c
mov eax, dword [edi + 4]
mov edx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00403130
test byte [edi + 0xc], 8
je 0x402a43
mov edi, dword [edi + 8]
mov edx, dword [edi - 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.00403130
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
mov edx, ebp
call fcn.004021e0
add esp, 4
or dword [esp + 0x18], 0x20
mov ebx, 1
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x402a85
push str.0000000000000000000000000000000000000000
lea ebx, [ecx + 0x28]
mov eax, ebp
call fcn.00403e90
mov dword [esp + 0x20], 1
jmp 0x402b15
cmp dword [esp + 0x3c], 0
jne 0x402b15
push 8
push 0x5421b8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x402b15
lea esi, [esp + 0x24]
mov edx, ebp
call fcn.00403440
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x34], bl
call fcn.00403460
add esp, 4
mov edi, ebp
mov byte [esp + 0x30], 2
call fcn.00403940
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 0x402af0
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 0x402b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x55702c]
mov eax, dword [edx + 0xc]
mov ecx, 0x55702c
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.00403090
mov ebx, dword [esp + 0x18]
and ebx, 0xff
push ebx
push str._02x
call fcn.00404610
mov edi, dword [esp + 0x24]
mov esi, dword [edi - 0xc]
call fcn.00402430
movzx ecx, al
push ecx
push ebx
push str._02x_02x
mov edi, ebp
call fcn.00404620
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 0x402b97
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 0x402bcc
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