Function at 0x409210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446750
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ffac]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [0x46147c]
mov ebx, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
mov edi, dword [ebx]
mov ecx, 0x46147c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push 0x44ba4c
push edi
mov dword [esp + 0x2c], esi
call dword [0x44b2e0]
mov esi, eax
test esi, esi
jne 0x4092bb
lea esi, [ebp - 0x10]
push esi
call fcn.00402a70
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4092a5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x3e
push esi
call fcn.004335b0
add esp, 8
test eax, eax
jne 0x409316
lea esi, [ebp - 0x10]
push esi
call fcn.00402a70
mov edi, dword [esp + 0x30]
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409300
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
sub eax, esi
push eax
sub esi, edi
push esi
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.00408050
mov bl, 1
push 0x44ba40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.00408e60
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x30], 2
call fcn.00413820
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40937b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x4093c3
lea esi, [ebp - 0x10]
push esi
call fcn.00402a70
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4092df
add esi, 9
push esi
push 0
lea ecx, [esp + 0x38]
call fcn.00407cf0
push 0x20
push 0x22
lea ecx, [esp + 0x38]
call fcn.00408400
push 0x20
push 0x27
lea ecx, [esp + 0x38]
call fcn.00408400
push 0x20
push 0x3f
lea ecx, [esp + 0x38]
call fcn.00408400
lea ecx, [esp + 0x30]
call fcn.004084c0
mov ecx, eax
call fcn.00408510
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.004030b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40944a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jle 0x40946c
push 0x20
push esi
call fcn.00432a92
add esp, 8
test eax, eax
je 0x40946c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40947e
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00402df0
jmp 0x40948d
mov esi, dword [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00407fd0
lea ecx, [esp + 0x30]
call fcn.004059d0
lea ecx, [esp + 0x14]
call fcn.004059d0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret