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

Disassembly:
jmp 0x590150
sub esp, 0xd0
push ebx
push ebp
mov ebx, ecx
lea eax, [esp + 0xe0]
push esi
push edi
push eax
lea ecx, [ebx + 0x84]
mov dword [esp + 0x2c], ebx
call fcn.0040cb0d
cmp byte [esp + 0xfc], 0
je 0x590186
mov eax, dword [esp + 0xf8]
jmp 0x5901a1
mov ecx, dword [esp + 0xf0]
test ecx, ecx
je 0x5906f1
mov eax, dword [ecx]
call dword [eax + 0x10]
sub eax, dword [esp + 0xf4]
test eax, eax
je 0x5906f1
sub esp, 0x18
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [esp + 0x104]
test eax, eax
je 0x5901ca
lock inc dword [eax + 4]
mov eax, dword [esp + 0x100]
mov dword [edx], eax
mov eax, dword [esp + 0x104]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x108]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x10c]
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
mov dword [edx + 0x14], ecx
lea ecx, [esp + 0x60]
mov dword [edx + 0x10], eax
call fcn.00410e2e
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0
push eax
lea ecx, [esp + 0x54]
call fcn.00406979
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5902ba
mov edi, dword [esp + 0xe4]
or esi, 0xffffffff
mov dword [edi], eax
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x48], 0x937f60
test ebx, ebx
je 0x590276
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x590276
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x590276
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [esp + 0xec]
test ebx, ebx
je 0x59072a
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x59072a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x59072a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x1c
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x48]
mov dword [ebx + 0x68], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
mov byte [esp + 0x78], 0
movzx eax, word [eax]
push eax
lea eax, [esp + 0x6c]
mov byte [esp + 0x80], 0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040e917
mov eax, dword [esp + 0x10]
test eax, eax
je 0x590329
mov ebx, dword [esp + 0xe4]
mov edi, dword [esp + 0x6c]
mov dword [ebx], eax
test edi, edi
je 0x59037c
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x59037c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x59037c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x59037c
mov eax, dword [ebx + 0x68]
lea ebp, [ebx + 0x38]
lea ecx, [esp + 0x48]
movzx eax, word [eax]
push eax
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040e917
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5903a0
mov ebx, dword [esp + 0xe4]
mov edi, dword [esp + 0x6c]
mov dword [ebx], eax
test edi, edi
je 0x59037c
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x59037c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x59037c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
lea ecx, [esp + 0x48]
call fcn.0040dab7
lea ecx, [esp + 0xe8]
call fcn.00408f53
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x1c
mov edi, dword [ebp + 4]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x5903bc
lock inc dword [edi + 4]
mov edi, dword [ebp + 4]
mov dword [esp + 0x14], edi
mov eax, dword [ebp]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
test al, al
jne 0x590423
mov edx, dword [ebp + 8]
test edx, edx
je 0x590415
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
mov edi, dword [ebx + 0x3c]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x20], eax
jmp 0x59041b
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
test edi, edi
je 0x59043d
lock inc dword [edi + 4]
mov edi, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov eax, dword [ebp]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x84], edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x14]
mov ebp, dword [esp + 0x18]
shr ebx, 1
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ebx
cmp esi, ebx
jne 0x5904ad
cmp dword [esp + 0x34], edi
jne 0x5904ad
cmp dword [esp + 0x38], ebp
jne 0x5904ad
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004048a9
add esp, 8
test al, al
je 0x5904c9
push esi
lea ecx, [esp + 0x30]
call fcn.00408aee
mov esi, dword [esp + 0x44]
movzx eax, word [eax]
add dword [esp + 0x10], eax
inc esi
mov dword [esp + 0x44], esi
jmp 0x590484
mov edi, dword [esp + 0x14]
or esi, 0xffffffff
mov ebx, dword [esp + 0x28]
test edi, edi
je 0x5904f7
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x5904f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x5904f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x59051e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x59051e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x59051e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00401a50
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5905ba
mov edi, dword [esp + 0xe4]
mov ebx, dword [esp + 0x6c]
mov dword [edi], eax
test ebx, ebx
je 0x59056d
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x59056d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x59056d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [esp + 0x48]
call fcn.0040dab7
mov ebx, dword [esp + 0xec]
test ebx, ebx
je 0x59072a
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x59072a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x59072a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x1c
lea eax, [ebx + 0x9c]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.0040674e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5905f9
mov ebx, dword [esp + 0xe4]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x10], 0
mov dword [ebx], eax
test edi, edi
je 0x59037c
jmp 0x59035e
push 0
push dword [ebx + 0x1c]
lea eax, [ebx + 0x18]
push eax
push ebx
lea ecx, [esp + 0xac]
call fcn.0040ce0a
lea eax, [esp + 0x1e]
push eax
mov eax, dword [ebx + 0x68]
lea ecx, [ebx + 0x50]
movzx eax, word [eax]
push eax
call fcn.00406677
lea eax, [esp + 0x1f]
push eax
mov eax, dword [ebx + 0x68]
lea ecx, [ebx + 0x5c]
movzx eax, word [eax]
push eax
call fcn.00406677
mov eax, dword [ebx + 0x68]
xor ecx, ecx
xor edi, edi
cmp cx, word [eax]
jae 0x590682
xor esi, esi
mov eax, dword [ebx + 0x50]
push edi
mov dword [eax + edi*4], esi
mov ecx, dword [ebx + 0x5c]
mov eax, dword [esp + 0xd8]
mov dword [ecx + edi*4], eax
lea ecx, [ebx + 0x38]
call fcn.00408aee
push 1
lea ecx, [esp + 0xa0]
movzx eax, word [eax]
add esi, eax
call fcn.004159bf
mov eax, dword [ebx + 0x68]
inc edi
movzx eax, word [eax]
cmp edi, eax
jb 0x590645
or esi, 0xffffffff
mov edi, dword [esp + 0xe4]
mov ebx, dword [esp + 0xb4]
mov dword [edi], 0
test ebx, ebx
je 0x5906b9
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x5906b9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x5906b9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x590247
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x590247
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x590247
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x590247
mov edi, dword [esp + 0xe4]
mov ebx, dword [esp + 0xec]
mov dword [edi], 0
test ebx, ebx
je 0x59072a
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x59072a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x59072a
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x1c