Function at 0x59948c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10015d78
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1001b17c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001b17c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov dword [eax], 0
lea eax, [esp + 0x40]
push eax
mov esi, ecx
mov ebx, 0xfffffc17
call dword [0x10016240]
lea ecx, [esp + 0x1c]
push ecx
call dword [0x10016080]
mov edx, dword [0x1001c1e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x1001c1e4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x5c], eax
cmp ebp, eax
je 0x59952b
mov eax, ebp
lea edx, [eax + 2]
jmp 0x59951c
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x59951c
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.005938dc
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x599559
push 0x3f
push ebp
call 0x59cec5
add esp, 8
test eax, eax
je 0x599559
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x599569
push 1
push 0x10016a1c
lea ecx, [esp + 0x1c]
call fcn.00593d1c
movzx ecx, word [esp + 0x2a]
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x28]
push edx
movzx edx, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2a]
push ecx
movzx ecx, word [esp + 0x2c]
push edx
movzx edx, byte [esp + 0x63]
push eax
movzx eax, byte [esp + 0x66]
push ecx
movzx ecx, byte [esp + 0x69]
push edx
movzx edx, byte [esp + 0x6c]
push eax
movzx eax, byte [esp + 0x6f]
push ecx
movzx ecx, byte [esp + 0x72]
push edx
movzx edx, byte [esp + 0x75]
push eax
movzx eax, byte [esp + 0x78]
push ecx
movzx ecx, word [esp + 0x7a]
push edx
movzx edx, word [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
lea ecx, [esp + 0x5c]
push 0x10016978
push ecx
call fcn.0059472c
add esp, 0x50
call dword [0x10016138]
sub eax, dword [edi]
cmp eax, dword [edi + 4]
jge 0x5996a2
xor ebp, ebp
cmp ebx, ebp
je 0x5996a2
lea edx, [esp + 0x30]
push edx
call dword [0x100161b4]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebp
mov ecx, dword [edi]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x48], edx
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x4c], eax
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x2c]
push eax
push ebp
push esi
push 0x10007610
push ebp
push ebp
mov dword [esi + 0x50], ecx
mov dword [esi + 0x40], ebp
mov dword [esi + 0x70], 0xfffffc17
mov dword [esi + 0x54], edx
call dword [0x1001607c]
mov ebp, eax
test ebp, ebp
jne 0x59965f
mov ebx, 0xfffffc11
jmp 0x599672
push 0xffffffffffffffff
push ebp
call dword [0x10016078]
push ebp
call dword [0x10016028]
mov ebx, dword [esi + 0x70]
lea ecx, [esp + 0x30]
push ecx
call dword [0x100161cc]
test ebx, ebx
je 0x599691
test byte [edi + 8], 2
je 0x5996a2
mov eax, dword [edi + 0xc]
push eax
call dword [0x10016044]
call dword [0x10016138]
sub eax, dword [edi]
cmp eax, dword [edi + 4]
jl 0x5995f7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5996ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call 0x59c79b
add esp, 0x4c
ret 0xc