Function at 0x4104f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd230
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e97d0]
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 [0x4ecda4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x4ecda4
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.00411110
mov eax, dword [edi + 0xc]
test al, 3
jne 0x410571
mov ecx, ebp
call fcn.00410370
test eax, eax
je 0x410566
mov dword [esp + 0x18], 0x10
mov ebx, 1
mov dword [esp + 0x20], ebx
jmp 0x4105cf
test al, 1
je 0x410585
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00410d00
test byte [edi + 0xc], 2
je 0x41059c
mov eax, dword [edi + 4]
mov edx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00410d00
test byte [edi + 0xc], 8
je 0x4105b3
mov edi, dword [edi + 8]
mov edx, dword [edi - 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
call fcn.00410d00
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push eax
mov edx, ebp
call fcn.0040fd20
add esp, 4
or dword [esp + 0x18], 0x20
mov ebx, 1
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4105f5
push str.0000000000000000000000000000000000000000
lea ebx, [ecx + 0x28]
mov eax, ebp
call fcn.00411a20
mov dword [esp + 0x20], 1
jmp 0x410685
cmp dword [esp + 0x3c], 0
jne 0x410685
push 8
push 0x4ce364
push eax
call dword [0x4be49c]
test eax, eax
je 0x410685
lea esi, [esp + 0x24]
mov edx, ebp
call fcn.00411010
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x34], bl
call fcn.00411030
add esp, 4
mov edi, ebp
mov byte [esp + 0x30], 2
call fcn.004114e0
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 0x410660
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 0x410685
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4ecda4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ecda4
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 3
mov ebx, dword [ebp]
lea eax, [esp + 0x1c]
call fcn.00410c50
mov ebx, dword [esp + 0x18]
and ebx, 0xff
push ebx
push str._02x
lea edi, [esp + 0x24]
call fcn.00412190
mov edi, dword [esp + 0x24]
mov esi, dword [edi - 0xc]
call fcn.0040ff70
movzx ecx, al
push ecx
push ebx
push str._02x_02x
mov edi, ebp
call fcn.004121a0
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 0x41070b
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 0x410740
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