Function at 0x412ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a67d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], 0
push ecx
mov dword [esp + 0x18], ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4af818
mov dword [esp + 0x54], 1
call fcn.00404200
mov ebx, dword [esp + 0x5c]
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push ebx
mov byte [esp + 0x58], 2
mov dword [esp + 0x28], ebx
call fcn.004015e0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov byte [esp + 0x54], 1
call fcn.00411140
mov byte [esp + 0x4c], 3
call fcn.004951e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x4c], 4
call fcn.004951e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 5
call fcn.00410d60
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call fcn.00402060
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412bc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov ebp, dword [esp + 0x10]
je 0x412e84
lea esp, [esp]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412e84
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.00410d60
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x4c], 7
je 0x412c59
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x412c4b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412c4b
push eax
call fcn.004015e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412c3e
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x412c59
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401b00
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x412f49
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x412da6
push 0x4af188
push ebp
call fcn.0047e729
add esp, 8
test eax, eax
je 0x412da6
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x412da6
test esi, esi
mov eax, dword [ebp - 0xc]
jl 0x412da6
cmp esi, eax
jg 0x412da6
lea eax, [ebp + esi*2]
push 0x4af194
push eax
call fcn.0047e729
add esp, 8
test eax, eax
je 0x412da6
sub eax, ebp
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x412da6
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00406a90
mov ecx, dword [esp + 0x18]
call fcn.0040fcf0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x412e19
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406a90
inc esi
push esi
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
mov byte [esp + 0x54], 8
call fcn.004022c0
mov eax, dword [eax]
push eax
mov byte [esp + 0x50], 9
call fcn.0047f3dc
add esp, 4
push eax
mov ecx, ebx
call fcn.00410460
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x412e19
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
lea esi, [ebp - 0x10]
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x412dd3
cmp eax, dword [esi]
jne 0x412dd3
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x412e07
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x412f5e
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
add eax, 0x10
mov dword [ebx], eax
call fcn.0040fcf0
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x412e71
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x412e5f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412e5f
push eax
call fcn.004015e0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412e56
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x10], ebp
jmp 0x412e71
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401b00
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov ebx, dword [esp + 0x1c]
jne 0x412be0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x412f63
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412f63
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x34], esp
mov edi, esp
push esi
call fcn.004015e0
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x5c]
add esp, 4
push edi
call fcn.00412a30
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x20], 1
mov byte [esp + 0x4c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412eec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x4c], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412f08
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 1
call fcn.0040f5b0
mov byte [esp + 0x4c], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412f32
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8
mov esi, dword [esp + 0x54]
push 0x4ae7d8
mov ecx, esi
call fcn.00404200
lea eax, [edi - 0x10]
jmp 0x412f7a
call fcn.004012c0
mov esi, dword [esp + 0x54]
push 0x4ae7d8
mov ecx, esi
call fcn.00404200
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x20], 1
mov byte [esp + 0x4c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x4c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 1
call fcn.0040f5b0
mov byte [esp + 0x4c], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412fe7
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x44]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 8