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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1b0
mov esi, esp
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esi + 0x1a8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
movzx eax, byte [eax + 9]
and eax, 0x7f
mov bl, 1
mov dword [esi + 0x10], ebx
cmp eax, 1
mov dword [esi + 4], ecx
mov dword [esi + 0x14], edx
jne 0x597455
mov eax, dword [ecx + 8]
mov ecx, 2
lock xadd dword [eax], ecx
test cl, 1
jne 0x5974b1
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x140], xmm0
movdqa xmmword [esi + 0x190], xmm0
movdqa xmmword [esi + 0x180], xmm0
movdqa xmmword [esi + 0x170], xmm0
movdqa xmmword [esi + 0x160], xmm0
movdqa xmmword [esi + 0x150], xmm0
mov byte [esi + 0x140], 0
mov byte [esi + 0x198], 0
mov dword [esi + 0x20], 0x102
mov byte [esi + 0x24], 0
mov dword [esi + 0x70], 0xffffffff
mov ecx, dword [edi]
mov ebx, edi
lea edi, [esi + 0x70]
push edi
call fcn.00599160
cmp byte [esi + 0x10], 0
mov ecx, ebx
je 0x5974c5
lea ebx, [esi + 0x88]
push edi
push ebx
call fcn.00599320
lea ecx, [esi + 0xe0]
push ebx
call fcn.00596c80
mov byte [esi + 0x138], 1
mov al, 1
movzx ecx, byte [esi + 0x198]
cmp cl, al
mov edi, dword [esi + 4]
je 0x5974e2
test cl, cl
lea ebx, [ebp + 0xc]
jne 0x597504
lea eax, [esi + 0xe0]
lea ecx, [esi + 0x140]
push eax
call fcn.00596c80
mov byte [esi + 0x198], 1
cmp byte [esi + 0x138], 1
jne 0x597080
lea ecx, [esi + 0xe0]
call fcn.00599630
cmp byte [esi + 0x10], 0
je 0x597091
lea ecx, [esi + 0x88]
call fcn.00599630
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 8]
mov dword [esi + 0x20], ecx
movzx eax, byte [eax + 0xc]
mov byte [esi + 0x24], al
lea ecx, [esi + 0x70]
call fcn.00599090
cmp byte [esi + 0x198], 1
jne 0x5972d7
mov eax, dword [esi + 0x158]
or eax, dword [esi + 0x15c]
jne 0x597426
mov dword [esi + 0x18], esp
sub esp, 0x60
mov edi, esp
cmp byte [esi + 0x198], 0
je 0x5974da
mov ebx, dword [ebx]
lea eax, [esi + 0x140]
mov ecx, edi
push eax
call fcn.00596c80
mov dword [edi + 0x58], ebx
lea eax, [esi + 0x20]
mov dword [edi + 0x5c], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x597580
jne 0x59734d
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
call dword [0x8072c0]
mov ecx, ebx
lea eax, [esi + 0x70]
push eax
call dword [esi + 8]
mov eax, dword [edi + 0x5c]
movzx eax, byte [eax + 1]
mov byte [esi + 0xf], al
test al, 0x7f
je 0x5973ee
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
mov ecx, dword [edi + 0x58]
xor eax, eax
cmp dword [ecx + 0x1c], 2
sete al
lea ecx, [esi + 0x64]
push 0
push eax
push dword [esi + 0x70]
call fcn.005a3530
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x5c], 0xffffffff
mov eax, dword [edi + 0x5c]
movzx eax, byte [eax]
lea ecx, [esi + 0x5c]
push eax
call fcn.00594d30
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x40], xmm0
mov byte [esi + 0x40], 0
mov byte [esi + 0x4c], 0
mov eax, dword [esi + 0x74]
test eax, eax
mov dword [esi + 8], edi
je 0x597408
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
lea ecx, [esi + 0x38]
push eax
call fcn.005a4df0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov byte [esi + 0x2c], 0
mov byte [esi + 0x34], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xe0], xmm0
mov dword [esi + 0xf0], 0xffffffff
mov byte [esi + 0xe0], 0
mov byte [esi + 0xf0], 0
mov eax, dword [esi + 0x7c]
test eax, eax
mov ecx, dword [esi + 4]
je 0x5973b8
mov ecx, 1
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x5974df
lea edi, [esi + 0x34]
lea ecx, [esi + 0x2c]
push eax
call fcn.00554e90
mov byte [edi], 1
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edi + 0x58]
mov eax, dword [edi + 0x5c]
mov ebx, edi
movzx edi, byte [eax + 1]
and edi, 0x7f
cmp edi, 1
jne 0x59739c
lea edi, [esi + 0x70]
push edi
push edx
push eax
push ebx
call fcn.00597b20
mov edi, ebx
mov dword [esi + 0x28], 0
mov ecx, edi
add ecx, 0x50
lea edi, [esi + 0x28]
push edi
call fcn.005614b0
mov ecx, edi
call fcn.00561570
cmp byte [esi + 0xf0], 1
je 0x59738c
cmp byte [esi + 0x34], 1
jne 0x597292
lea ecx, [esi + 0x2c]
call fcn.00554f00
lea ecx, [esi + 0x38]
call fcn.005a4e30
cmp byte [esi + 0x4c], 1
mov edi, dword [esi + 4]
je 0x597365
lea ecx, [esi + 0x5c]
call fcn.00594d70
lea ecx, [esi + 0x64]
call fcn.005a35d0
test byte [esi + 0xf], 0x7f
je 0x597372
lea ecx, [esi + 0x70]
call fcn.00534700
mov ecx, dword [esi + 8]
call fcn.00599630
lea ebx, [ebp + 0xc]
mov esp, dword [esi + 0x18]
cmp byte [esi + 0x10], 0
je 0x5972fe
mov eax, dword [ebx]
movzx eax, byte [eax + 9]
and al, 0x7f
cmp al, 1
jne 0x5972fe
mov eax, dword [edi + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
je 0x59747b
mov ecx, ebx
push 0
call fcn.00599350
test al, al
je 0x597359
mov ecx, dword [esi + 0x14]
push ebx
call fcn.005991b0
lea edi, [ebp + 8]
cmp byte [esi + 0x198], 1
jne 0x59732b
lea ecx, [esi + 0x140]
call fcn.00599630
mov ecx, ebx
call fcn.005991e0
mov edi, dword [edi]
mov ecx, dword [esi + 0x1a8]
xor ecx, ebp
call fcn.005c9f16
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, ecx
call fcn.00597580
jmp 0x5972d1
mov ecx, dword [esi + 0x14]
push 0
call fcn.00599190
jmp 0x597314
lea ecx, [esi + 0x40]
call fcn.005a4d90
jmp 0x5972a7
mov eax, dword [0x813560]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
dec dword [eax + 0x148]
jmp 0x5972c1
lea ecx, [esi + 0xe0]
call fcn.00554de0
jmp 0x597284
test edi, edi
jne 0x597438
lea edi, [esi + 0x70]
push edi
push edx
push eax
mov edi, dword [esi + 8]
push edi
call fcn.00597a50
jmp 0x59725b
mov eax, dword [esi + 0x78]
test eax, eax
je 0x597235
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x59751d
lea edi, [esi + 0xf0]
lea ecx, [esi + 0xe0]
push eax
call fcn.00554cd0
jmp 0x59722c
mov eax, dword [0x813560]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
inc dword [eax + 0x148]
jmp 0x597139
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.005a4d70
mov byte [edi + 0xc], 1
mov eax, dword [esi + 0x74]
test eax, eax
cmove eax, edi
mov edi, dword [esi + 8]
jmp 0x5971a4
mov eax, dword [edi + 8]
mov eax, dword [eax]
test al, 1
je 0x5970c8
jmp 0x597520
cmp edi, 2
mov edi, dword [esi + 8]
jne 0x59725b
lea ebx, [esi + 0x70]
push ebx
push edx
push eax
push edi
call fcn.0050ad30
jmp 0x59725b
test eax, eax
jne 0x59746b
mov eax, dword [ecx + 8]
mov eax, dword [eax]
test al, 1
sete al
mov dword [esi + 0x10], eax
jmp 0x596fa7
cmp eax, 2
je 0x596fa7
call fcn.00649760
jmp 0x5974b9
add edi, 0x34
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x59755d
mov eax, dword [esi + 4]
cmp byte [eax + 0x40], 0
je 0x59755b
mov ecx, dword [esi + 4]
add ecx, 0x38
call fcn.00555120
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x5972fe
mov ecx, dword [esi + 4]
call fcn.006eed40
mov dword [esi + 0x10], 0
jmp 0x596fa7
lea ebx, [esi + 0xe0]
push edi
push ebx
call fcn.006ef9e0
mov al, byte [ebx + 0x58]
jmp 0x597036
call fcn.005fe540
int3
test cl, cl
lea ebx, [ebp + 0xc]
je 0x59706c
lea eax, [esi + 0xe0]
lea ecx, [esi + 0x140]
push eax
call fcn.00596c90
jmp 0x59706c
lea edi, [esi + 0x140]
mov ecx, edi
call fcn.00599630
mov byte [edi + 0x58], 0
mov edi, dword [esi + 4]
jmp 0x59706c
int3
mov eax, dword [esi + 0x190]
xor edx, edx
mov dword [esi + 0x190], edx
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0xe0]
mov dword [ecx], edx
call fcn.00561570
cmp byte [esi + 0x198], 0
je 0x59755b
lea ecx, [esi + 0x190]
mov eax, dword [esi + 0x1c]
push eax
call fcn.006eecc0
jmp 0x5970c8
ud2
mov ecx, edi
call fcn.0054e320
jmp 0x59748d