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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485c38
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4ad0cc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x24], esi
call fcn.004034a0
test al, al
jne 0x413ae6
mov edx, 0x496d80
mov ecx, ebx
call fcn.004151a0
test al, al
jne 0x413ae6
mov eax, dword [edi + 4]
or edi, 0xffffffff
cmp dword [eax], 0
je 0x4137cd
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x41380e
lea ecx, [esp + 0x60]
call fcn.004150e0
mov ecx, dword [esp + 0x14]
push eax
mov ecx, dword [ecx + 4]
call fcn.00415210
mov esi, dword [esp + 0x64]
test esi, esi
je 0x41380e
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x41380e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x41380e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x68]
xorps xmm0, xmm0
movq qword [esp + 0x68], xmm0
push dword [eax + 4]
call fcn.00413fc0
mov dword [esp + 0x80], 0
lea ecx, [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x5c], 0
push 0x496d80
movq qword [esp + 0x58], xmm0
call fcn.00401e10
sub esp, 8
mov byte [esp + 0x88], 1
lea eax, [esp + 0x44]
mov edx, ebx
lea ecx, [esp + 0x5c]
push eax
call fcn.00415270
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.00401e50
mov ecx, dword [esp + 0x58]
mov eax, 0x2aaaaaab
sub ecx, dword [esp + 0x54]
xor ebx, ebx
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
dec ecx
add ecx, edx
xor esi, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov edi, edi
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4139d8
cmp dword [eax + 4], 5
jne 0x4139d8
lea edx, [esp + 0x68]
cmp ebx, ecx
je 0x413a74
xorps xmm0, xmm0
lea ecx, [esp + 0x2c]
movq qword [esp + 0x60], xmm0
call fcn.004153f0
mov byte [esp + 0x80], 5
lea ecx, [esp + 0x60]
mov edx, dword [esp + 0x54]
add edx, esi
push edx
push ecx
mov ecx, dword [eax]
call fcn.004121f0
mov byte [esp + 0x80], 7
mov esi, dword [esp + 0x30]
test esi, esi
je 0x413922
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x413922
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x413922
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x413930
cmp dword [eax + 4], 0
jne 0x41397f
lea ecx, [esp + 0x34]
call fcn.004150e0
push eax
lea ecx, [esp + 0x64]
call fcn.00415210
lea ecx, [esp + 0x34]
call fcn.00410ed0
lea edx, [esp + 0x68]
lea ecx, [esp + 0x1c]
call fcn.004153f0
mov byte [esp + 0x80], 8
mov ecx, dword [eax]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x1c]
push eax
call fcn.00412280
lea ecx, [esp + 0x1c]
call fcn.00410ed0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x6c]
call fcn.00414210
mov byte [esp + 0x80], 3
mov esi, dword [esp + 0x64]
test esi, esi
je 0x4139c0
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4139c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x4139c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x18]
inc ebx
mov ecx, dword [esp + 0x28]
add esi, 0x18
mov dword [esp + 0x18], esi
cmp ebx, ecx
jbe 0x4138a0
mov byte [esp + 0x13], 0
mov byte [esp + 0x80], 0
cmp dword [esp + 0x54], 0
je 0x413a36
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x413a14
mov ecx, esi
call fcn.00401e50
add esi, 0x18
cmp esi, ebx
jne 0x413a02
mov esi, dword [esp + 0x54]
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x413a6b
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x413a6b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x413a6b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [esp + 0x13]
jmp 0x413b45
lea ecx, [esp + 0x1c]
call fcn.004153f0
mov byte [esp + 0x80], 4
lea edx, [ebx + ebx*2]
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
push dword [eax + 4]
mov eax, dword [esp + 0x58]
lea eax, [eax + edx*8]
push eax
call fcn.00412280
mov byte [esp + 0x80], 3
mov esi, dword [esp + 0x20]
test esi, esi
je 0x413ad1
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x413ad1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x413ad1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov eax, dword [eax + 4]
mov byte [eax + 0x20], 1
jmp 0x4139dd
push dword [esi + 4]
mov edi, dword [edi + 4]
lea ecx, [esp + 0x20]
call fcn.00413fc0
mov ecx, dword [edi + 4]
mov esi, eax
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [esi], eax
mov esi, dword [esp + 0x20]
mov dword [edi], ecx
test esi, esi
je 0x413b38
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x413b38
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x413b38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov byte [eax + 0x20], 1
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret 8