Function at 0x594b9c
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100159c3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001b17c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x38]
xor ebx, ebx
mov dword [esp + 0x34], ebx
call dword [0x10016138]
or dword [esp + 0x34], 2
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], 0xbb8
call fcn.0059869c
mov eax, dword [0x1001c1e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c1e4
mov dword [esp + 0xbc], ebx
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
lea ebp, [edi + 4]
push ebp
mov dword [esp + 0x28], ebp
call dword [0x100160c8]
mov dword [esp + 0x28], 1
mov byte [esp + 0xbc], 2
cmp dword [esp + 0xc4], ebx
jne 0x594c67
mov eax, dword [edi + 0x1c]
cmp dword [eax - 0xc], ebx
je 0x594c67
push ebp
call dword [0x100160c4]
lea eax, [esi - 0x10]
mov byte [esp + 0xbc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x594fc9
push ebp
call dword [0x100160c4]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x10016380
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], ebx
call fcn.0059948c
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x594cd3
lea eax, [esi - 0x10]
mov byte [esp + 0xbc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594cb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0059870c
mov eax, dword [esp + 0x14]
jmp 0x594feb
mov edx, dword [esp + 0x20]
cmp edx, ebx
jne 0x594cdf
xor eax, eax
jmp 0x594cfb
mov eax, edx
lea esi, [eax + 2]
jmp 0x594cec
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x594cec
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.005938dc
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x100161c8]
push ebp
call dword [0x100160c8]
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x2c], 1
call fcn.0059c8c3
mov ebx, dword [esp + 0x20]
add esp, 4
mov dword [edi + 0x3c], eax
cmp dword [ebx - 0xc], 0
jl 0x594d57
push 0x10016374
push ebx
call fcn.0059b72e
add esp, 8
test eax, eax
je 0x594d57
sub eax, ebx
sar eax, 1
mov esi, eax
cmp esi, 6
jge 0x594da0
push ebp
call dword [0x100160c4]
lea eax, [ebx - 0x10]
mov byte [esp + 0xbc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594d82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0059870c
mov eax, 0xfffffc13
jmp 0x594feb
lea ecx, [esi - 5]
push ecx
push 5
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00593acc
push eax
lea eax, [esp + 0x18]
push 0x10016364
push eax
mov byte [esp + 0xc8], 3
call fcn.0059463c
add esp, 0xc
lea ecx, [edi + 0x1c]
push eax
mov byte [esp + 0xc0], 4
call fcn.00593c0c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594e08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 5
mov eax, dword [ebx - 0xc]
js 0x594e59
cmp esi, eax
jg 0x594e59
lea ecx, [ebx + esi*2]
push 0x10016358
push ecx
call fcn.0059b72e
add esp, 8
test eax, eax
je 0x594e59
sub eax, ebx
sar eax, 1
mov ebp, eax
jmp 0x594e5c
or ebp, 0xffffffff
mov edx, ebp
sub edx, esi
push edx
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.00593acc
push eax
lea ecx, [esp + 0x1c]
push 0x10016364
push ecx
mov byte [esp + 0xc8], 5
call fcn.0059463c
add esp, 0xc
lea ecx, [edi + 0x20]
push eax
mov byte [esp + 0xc0], 6
call fcn.00593c0c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x594ec4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594eec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
lea esi, [ebp + 5]
test esi, esi
jl 0x594f15
cmp esi, eax
jg 0x594f15
lea ecx, [ebx + esi*2]
push 0x1001634c
push ecx
call fcn.0059b72e
add esp, 8
test eax, eax
je 0x594f15
sub eax, ebx
sar eax, 1
jmp 0x594f18
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
call fcn.00593acc
push eax
lea eax, [esp + 0x1c]
push 0x10016364
push eax
mov byte [esp + 0xc8], 7
call fcn.0059463c
add esp, 0xc
lea ecx, [edi + 0x24]
push eax
mov byte [esp + 0xc0], 8
call fcn.00593c0c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594fa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x100160c4]
lea eax, [ebx - 0x10]
mov byte [esp + 0xbc], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x594fd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0059870c
xor eax, eax
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4