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

Disassembly:
jmp 0x56a0e0
sub esp, 0x110
mov eax, dword [esp + 0x118]
push ebx
mov dword [esp + 0xc4], eax
mov ebx, ecx
mov eax, dword [esp + 0x120]
push esi
push edi
mov dword [esp + 0xd0], eax
lea edi, [ebx + 0x7c]
lea eax, [esp + 0xcc]
mov dword [esp + 0x84], ebx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x8c], edi
push eax
mov ecx, edi
call fcn.0040e51b
mov esi, dword [edi]
call fcn.0040378d
mov ecx, dword [edi + 0xc]
test al, al
lea ecx, [ecx + ecx*2]
lea ecx, [esi + ecx*4]
cmove esi, ecx
mov ecx, dword [esp + 0x30]
cmp ecx, esi
je 0x56a176
test al, al
je 0x56a150
add ecx, 0xfffffff4
push dword [ecx + 8]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0040afb5
mov esi, dword [esp + 0x120]
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esi], ecx
mov ecx, dword [esp + 0x10]
jmp 0x56a1ed
mov ecx, dword [ebx]
lea eax, [esp + 0x24]
push eax
mov ecx, dword [ecx + 4]
call fcn.00415f37
mov cl, byte [esp + 0x28]
mov al, cl
not al
test al, 1
jne 0x56a1a3
mov esi, dword [esp + 0x120]
test cl, 1
mov dword [esi], 0
jmp 0x56a1e3
mov ecx, dword [ebx]
lea eax, [esp + 0x38]
push eax
mov ecx, dword [ecx + 4]
call fcn.004156a9
mov cl, byte [esp + 0x3c]
mov al, cl
not al
test al, 1
jne 0x56a209
mov esi, dword [esp + 0x120]
mov dword [esi], 0
test cl, 1
je 0x56a1de
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x56a1de
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x28], 1
je 0x56ad06
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x56ad06
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret 0xc
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + 4]
test edi, edi
je 0x56a21b
lock inc dword [edi + 4]
mov edi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0xa0], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xa4], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x4058]
mov dword [esp + 0x14], eax
test eax, eax
je 0x56a269
lock inc dword [eax + 4]
mov eax, dword [ecx + 0x4058]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x4054]
mov esi, dword [ecx + 0x4060]
mov ebx, dword [ecx + 0x4064]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx + 0x405c]
mov ecx, dword [ecx + 0x4068]
mov dword [esp + 0x18], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x98], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x56a2eb
lock inc dword [ecx]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x7c], ebx
mov ebx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x20], 0
lock inc dword [ecx]
mov eax, dword [esp + 0x14]
jmp 0x56a328
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x7c], ebx
mov ebx, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], esi
or esi, 0xffffffff
mov dword [esp + 0x44], eax
test cl, cl
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], 0
je 0x56a363
mov ecx, eax
jmp 0x56a37b
test edx, edx
je 0x56a69b
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x10]
mov ecx, eax
sub ecx, dword [esp + 0x98]
shr ecx, 2
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x56a697
mov eax, ecx
nop dword [eax]
test ebx, ebx
je 0x56a398
lock inc dword [ebx + 4]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], ebx
test ecx, ecx
je 0x56a3d3
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x56a3cf
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x64]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56a3cf
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x8c]
shr eax, 1
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0xcc]
mov dword [esp + 0x64], eax
add eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x44]
shl eax, 2
push 4
push eax
lea eax, [esp + 0x84]
mov dword [esp + 0xd8], 0
push eax
mov dword [esp + 0xe0], 0
call fcn.00412431
mov eax, dword [esp + 0x78]
test eax, eax
je 0x56a47a
lea ecx, [esp + 0xf]
mov dword [esp + 0x78], 0
push ecx
push ecx
mov ecx, esp
mov byte [esp + 0x17], 0
mov dword [ecx], eax
call fcn.0040fe9d
mov ecx, dword [esp + 0x80]
add esp, 8
test ecx, ecx
je 0x56a47a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0xcc]
push dword [eax]
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x56a49d
lock inc dword [edi + 4]
mov ecx, dword [esp + 0xb8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xbc]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x14], ecx
lea eax, [esp + 0x88]
push eax
call fcn.00409903
mov al, byte [esp + 0x94]
add esp, 0x20
not al
test al, 1
je 0x56a848
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push 0
sub esp, 0x20
mov dword [esp + 0x8c], esp
cmp edx, 4
jae 0x56a50c
xor eax, eax
jmp 0x56a510
movzx eax, word [ecx + 2]
mov word [esp + 0xd4], ax
xor eax, eax
mov word [esp + 0xe0], ax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
lea eax, [esp + 0xd4]
push eax
push edx
push ecx
lea eax, [esp + 0xdc]
mov dword [esp + 0xe4], 0
push eax
mov dword [esp + 0xec], 0
call fcn.00411068
mov eax, dword [esp + 0xe0]
add esp, 0x10
mov ecx, dword [esp + 0x8c]
test eax, eax
je 0x56a58c
or byte [ecx + 0x1c], 1
mov dword [esp + 0xd0], 0
mov dword [ecx], eax
jmp 0x56a5b3
movups xmm0, xmmword [esp + 0xd4]
mov eax, dword [esp + 0xec]
and byte [ecx + 0x1c], 0xfe
movups xmmword [ecx], xmm0
movq xmm0, qword [esp + 0xe4]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
lea eax, [esp + 0x108]
push eax
call fcn.0040d7f6
movzx eax, word [esp + 0x118]
add esp, 0x28
cmp eax, dword [esp + 0x124]
jb 0x56a5f3
jne 0x56a5e6
mov eax, dword [esp + 0x128]
cmp dword [esp + 0xec], eax
jbe 0x56a5f3
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
jmp 0x56a676
inc dword [esp + 0x58]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x56a603
lock inc dword [eax + 4]
mov eax, dword [esp + 0x40]
mov ecx, ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x68], ecx
test ecx, ecx
je 0x56a638
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x56a638
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x68]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56a638
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, dword [esp + 0x64]
add dword [esp + 0x1c], eax
test byte [esp + 0x74], 1
je 0x56a68b
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x56a68b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x56a390
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56a6a6
lock inc dword [ecx]
cmp dword [esp + 0x58], 0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], 0
jne 0x56a723
cmp dword [esp + 0x48], eax
jne 0x56a723
cmp dword [esp + 0x4c], ecx
jne 0x56a723
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004048a9
add esp, 8
mov byte [esp + 0xf], 1
test al, al
je 0x56a728
mov byte [esp + 0xf], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x56a752
mov edx, dword [esp + 0x2c]
mov eax, esi
lock xadd dword [edx], eax
jne 0x56a752
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56a752
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xf], 0
je 0x56a971
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov dword [eax], 0
test ecx, ecx
je 0x56a795
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x56a795
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x30]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56a795
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x56a7b8
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56a7b8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56a7b8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x56a7df
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56a7df
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56a7df
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test edi, edi
je 0x56a801
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x56a801
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x56a801
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test byte [esp + 0x3c], 1
je 0x56a816
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x56a816
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x28], 1
je 0x56acff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x56acff
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x70]
call fcn.004109d3
lea eax, [esp + 0xf]
mov byte [esp + 0xf], 0
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.0040fe9d
mov eax, dword [esp + 0x128]
add esp, 8
test byte [esp + 0x74], 1
mov dword [eax], 0
je 0x56a893
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x56a893
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x56a8be
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x56a8be
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x10]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56a8be
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x56a8e1
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56a8e1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56a8e1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x56a908
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56a908
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56a908
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test edi, edi
je 0x56a92a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x56a92a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x56a92a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test byte [esp + 0x3c], 1
je 0x56a93f
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x56a93f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x28], 1
je 0x56acff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x56acff
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret 0xc
dec dword [esp + 0x58]
lea ecx, [esp + 0x40]
call fcn.00415195
push dword [eax]
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x56a99a
lock inc dword [edi + 4]
mov ecx, dword [esp + 0xb8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xbc]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x14], ecx
lea eax, [esp + 0xf4]
push eax
call fcn.00409903
mov al, byte [esp + 0x100]
add esp, 0x20
not al
test al, 1
jne 0x56ab08
push ecx
push esp
lea ecx, [esp + 0xe0]
call fcn.004109d3
call fcn.0040157d
mov eax, dword [esp + 0x124]
add esp, 4
test byte [esp + 0xe0], 1
mov dword [eax], 0
je 0x56aa2a
mov ecx, dword [esp + 0xd8]
test ecx, ecx
je 0x56aa2a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x56aa55
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x56aa55
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x30]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56aa55
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x56aa78
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56aa78
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56aa78
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x56aa9f
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56aa9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56aa9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test edi, edi
je 0x56aac1
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x56aac1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x56aac1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test byte [esp + 0x3c], 1
je 0x56aad6
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x56aad6
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x28], 1
je 0x56acff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x56acff
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret 0xc
push 0
sub esp, 0x20
mov eax, esp
push dword [esp + 0x100]
push dword [esp + 0x100]
push eax
call fcn.00408f71
add esp, 0xc
lea eax, [esp + 0x124]
push eax
call fcn.0040d7f6
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
mov dword [esp + 0x40], eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x44]
push eax
push dword [ecx]
lea eax, [esp + 0x64]
push eax
call fcn.0040b1e0
add esp, 0x38
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x56ab81
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
je 0x56aba3
mov dword [ecx], edx
add dword [eax + 0xc], 4
jmp 0x56abc3
lea edx, [esp + 0x10]
push edx
push ecx
lea ecx, [eax + 8]
call fcn.004106a9
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x56abbf
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x2cc]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.00401753
push dword [esp + 0x18]
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x8c]
push eax
call fcn.0040afb5
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [esp + 0x120]
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x56ac3e
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 0xd8]
call fcn.00407428
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x56ac75
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x56ac75
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x30]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x56ac75
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x56ac98
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56ac98
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56ac98
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x56acbf
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x56acbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x56acbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test edi, edi
je 0x56ace1
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x56ace1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x56ace1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [esp + 0x38]
call fcn.0040c243
test byte [esp + 0x28], 1
je 0x56acff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x56acff
mov edx, dword [ecx]
push 1
call dword [edx]
mov esi, dword [esp + 0x120]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret 0xc