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

Disassembly:
jmp 0x591130
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x70]
push edi
push 0
lea ebx, [esi + 4]
sub esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [esi], 0x93b608
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], ecx
mov ecx, dword [ecx + 4]
push esp
mov dword [esp + 0x44], esi
call fcn.0041032f
call fcn.0040d936
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov ebp, eax
mov ecx, dword [ecx + 4]
push 0
sub esp, 8
push esp
call fcn.004156a9
call fcn.0041492a
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
je 0x5911ab
lock inc dword [esi + 4]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
or edi, 0xffffffff
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esi + 4]
test esi, esi
je 0x591246
lock inc dword [eax]
lock inc dword [eax]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
lea ecx, [esi + 4]
mov dword [esp + 0x4c], eax
mov eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], 0
lock xadd dword [ecx], eax
jne 0x591226
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x591223
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x591272
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x591272
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x591272
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
cmp byte [ebp + 0x18], 0
je 0x59127d
mov esi, dword [ebp + 0x14]
jmp 0x591292
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x591290
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
sub esi, dword [ebp + 0x10]
jmp 0x591292
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
test edi, edi
je 0x5912a8
lock inc dword [edi + 4]
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
shr esi, 3
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
test edi, edi
je 0x59135e
lock inc dword [eax]
lock inc dword [eax]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], ebp
or ebp, 0xffffffff
mov dword [esp + 0x68], ecx
mov eax, ebp
mov dword [esp + 0x58], edi
lea ecx, [edi + 4]
mov dword [esp + 0x60], edx
mov dword [esp + 0x6c], esi
lock xadd dword [ecx], eax
jne 0x59132e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebp
lock xadd dword [edi + 8], eax
jne 0x59132b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [edi + 4]
mov dword [esp + 0x74], esi
mov eax, ebp
lock xadd dword [ecx], eax
jne 0x591358
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov dword [esp + 0x74], esi
mov eax, ebp
lock xadd dword [edi + 8], eax
jne 0x591358
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esp + 0x74], esi
mov edx, dword [esp + 0x10]
jmp 0x591394
mov ebp, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x28]
nop dword [eax]
cmp dword [esp + 0x50], ebp
jne 0x5913cc
cmp dword [esp + 0x40], edi
jne 0x5913cc
cmp dword [esp + 0x44], edx
jne 0x5913cc
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004048a9
add esp, 8
test al, al
je 0x5914ad
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x20]
push ecx
shl eax, 3
lea ecx, [esp + 0x3c]
push 8
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
mov dword [esp + 0x34], 0
call fcn.00412431
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59142e
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], 0
push ecx
push ecx
mov ecx, esp
mov byte [esp + 0x7c], 0
mov dword [ecx], eax
call fcn.0040fe9d
mov ecx, dword [esp + 0x1c]
add esp, 8
test ecx, ecx
je 0x59142e
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov esi, dword [eax]
lea eax, [esp + 0x18]
dec esi
push esi
push eax
mov dword [esp + 0x30], esi
call fcn.0040986d
cmp dword [esp + 0x1c], 4
jae 0x591453
xor eax, eax
jmp 0x59145b
mov eax, dword [esp + 0x18]
movzx eax, word [eax + 2]
movzx eax, ax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00407a22
add esp, 8
test al, al
je 0x5914a0
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x591493
mov edx, dword [esp + 0x10]
mov dword [eax], esi
add dword [ebx + 4], 4
inc dword [esp + 0x50]
jmp 0x5913a0
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.0041049c
inc dword [esp + 0x50]
mov edx, dword [esp + 0x10]
jmp 0x5913a0
mov edi, dword [esp + 0x2c]
mov ebp, 0xffffffff
test edi, edi
je 0x5914d9
mov eax, ebp
lock xadd dword [edi + 4], eax
jne 0x5914d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebp
lock xadd dword [edi + 8], eax
jne 0x5914d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x5914ff
mov eax, ebp
lock xadd dword [esi + 4], eax
jne 0x5914ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebp
dec ebp
jne 0x5914ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x78]
test edx, edx
je 0x59153d
mov ecx, dword [esp + 0x80]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x591533
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x591533
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004036ca
add esp, 8
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x10