Function at 0x59632c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10015ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001b17c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x1001c1e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c1e4
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x30]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
push eax
mov dword [esp + 0x40], 0
call fcn.0059342c
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x1c]
call fcn.0059410c
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00593c0c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5963d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax - 0xc]
lea ebx, [ebp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00593d1c
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00593d1c
mov ecx, dword [esp + 0x14]
push 1
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 0x1001c108
call fcn.0059a28c
lea ecx, [ebp + 0x34]
push eax
mov byte [esp + 0x3c], 2
call fcn.00593c0c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x596442
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x40]
lea edi, [ebp + 0x40]
xor esi, esi
cmp eax, esi
je 0x596465
mov ecx, dword [edi + 4]
push ecx
push eax
call fcn.00593fbc
mov edx, dword [edi]
push edx
call fcn.0059be20
add esp, 0xc
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov eax, dword [0x1001c1e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c1e4
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x1001c1e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c1e4
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
push 3
push 0x10016640
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 3
call fcn.005938dc
push ebx
lea ecx, [esp + 0x2c]
call fcn.00593c0c
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0059474c
push 4
push 0x10016634
lea ecx, [esp + 0x2c]
call fcn.005938dc
mov eax, dword [ebp + 0x2c]
push 1
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0059342c
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x28]
call fcn.0059403c
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
mov byte [esp + 0x4c], 4
call fcn.0059448c
add esp, 0x10
mov eax, dword [eax]
push eax
lea edx, [esp + 0x20]
mov bl, 5
push edx
mov ecx, 0x1001c108
mov byte [esp + 0x44], bl
call fcn.0059a28c
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 6
call fcn.00593c0c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x596557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59657c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5965a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0059474c
push 9
push 0x10016620
lea ecx, [esp + 0x2c]
call fcn.005938dc
push 7
push 0x10016610
lea ecx, [esp + 0x30]
call fcn.005938dc
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0059474c
push 3
push 0x10016608
lea ecx, [esp + 0x2c]
call fcn.005938dc
mov eax, dword [ebp + 0x30]
cmp dword [eax - 0xc], 0
lea esi, [ebp + 0x30]
jne 0x596607
push 3
push 0x100165d0
lea ecx, [esp + 0x30]
call fcn.005938dc
jmp 0x59666a
jge 0x59660e
or eax, 0xffffffff
jmp 0x596629
push 0x10016604
push eax
call fcn.0059b72e
add esp, 8
test eax, eax
jne 0x596625
or eax, 0xffffffff
jmp 0x596629
sub eax, dword [esi]
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00593b8c
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 7
call fcn.00593c0c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x59666a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0059474c
push 0xa
push 0x100165ec
lea ecx, [esp + 0x2c]
call fcn.005938dc
mov ebp, dword [ebp + 0x2c]
push 1
lea edx, [esp + 0x2c]
push edx
push ecx
mov dword [esp + 0x2c], esp
sub ebp, 0x10
mov esi, esp
push ebp
call fcn.0059342c
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x24]
call fcn.0059403c
add esp, 4
push eax
lea eax, [esp + 0x28]
mov bl, 8
push eax
mov byte [esp + 0x48], bl
call fcn.0059448c
add esp, 0xc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x1001c108
mov byte [esp + 0x44], 9
call fcn.0059a28c
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.00593c0c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x596713
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x596737
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 + 0x38], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59675c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0059474c
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x59678d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x5967ad
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 dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5967d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret