Function at 0x414cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor eax, eax
mov ecx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov dword [ecx + 0xc], eax
push edx
lea ecx, [esp + 0x34]
call fcn.0040d3a0
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 0xc]
cmp eax, 3
mov dword [esp + 0x24], 0
jge 0x414d2b
push 0x80070057
call fcn.004011d0
mov cl, byte [edx + 3]
or ebp, 0xffffffff
cmp cl, 0x20
je 0x414f2f
cmp cl, 0x2c
je 0x414e6e
test eax, eax
jl 0x415001
push 0x42a5f4
push edx
call fcn.0041a0ed
add esp, 8
test eax, eax
je 0x415001
sub eax, dword [esp + 0x30]
mov ebx, eax
cmp ebx, ebp
je 0x415001
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 2
lea ecx, [ebx + 2]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
add esp, 4
push 3
lea edx, [ebx + 5]
mov word [esi + 6], ax
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040ad00
mov edi, eax
call fcn.00413b70
mov word [esi + 2], ax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414dce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 2
lea ecx, [ebx + 9]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
mov edx, esp
mov dword [esp + 0x1c], esp
mov word [esi], ax
push 2
lea eax, [ebx + 0xc]
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
mov ecx, esp
mov dword [esp + 0x1c], esp
push 2
lea edx, [ebx + 0xf]
push edx
push ecx
lea ecx, [esp + 0x40]
mov word [esi + 8], ax
call fcn.0040ad00
call fcn.00414180
mov dword [esp + 0x1c], esp
mov word [esi + 0xa], ax
mov eax, esp
push 2
add ebx, 0x12
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
mov word [esi + 0xc], ax
xor eax, eax
mov ax, word [esi]
add esp, 4
mov cx, 0x32
cmp cx, ax
sbb edx, edx
and edx, 0xffffff9c
add edx, 0x7d0
add edx, eax
mov word [esi], dx
jmp 0x415001
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
push 2
push 5
push eax
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
add esp, 4
push 3
push 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x3c]
mov word [esi + 6], ax
call fcn.0040ad00
mov edi, eax
call fcn.00413b70
mov word [esi + 2], ax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414ec9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 4
push 0xc
push eax
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
mov ecx, esp
mov dword [esp + 0x1c], esp
push 2
push 0x11
push ecx
lea ecx, [esp + 0x40]
mov word [esi], ax
call fcn.0040ad00
call fcn.00414180
mov edx, esp
mov dword [esp + 0x1c], esp
push 2
push 0x14
push edx
lea ecx, [esp + 0x40]
mov word [esi + 8], ax
call fcn.0040ad00
call fcn.00414180
mov word [esi + 0xa], ax
mov eax, esp
mov dword [esp + 0x1c], esp
push 2
push 0x17
jmp 0x414feb
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 2
push 8
push ecx
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
add esp, 4
push 3
push 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
mov word [esi + 6], ax
call fcn.0040ad00
mov edi, eax
call fcn.00413b70
mov word [esi + 2], ax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414f8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 4
push 0x14
push eax
lea ecx, [esp + 0x40]
call fcn.0040ad00
call fcn.00414180
mov ecx, esp
mov dword [esp + 0x1c], esp
push 2
push 0xb
push ecx
lea ecx, [esp + 0x40]
mov word [esi], ax
call fcn.0040ad00
call fcn.00414180
mov edx, esp
mov dword [esp + 0x1c], esp
push 2
push 0xe
push edx
lea ecx, [esp + 0x40]
mov word [esi + 8], ax
call fcn.0040ad00
call fcn.00414180
mov word [esi + 0xa], ax
mov eax, esp
mov dword [esp + 0x1c], esp
push 2
push 0x11
lea ecx, [esp + 0x3c]
push eax
call fcn.0040ad00
call fcn.00414180
add esp, 4
mov word [esi + 0xc], ax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
cmp word [esi], 0
mov dword [esp + 0x24], ebp
lea ecx, [eax + 0xc]
je 0x415040
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x415026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x415051
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8