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

Disassembly:
push 0xffffffffffffffff
push 0x10040a64
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1005a690]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov eax, dword [0x1005cb98]
test al, 1
jne 0x10031ede
or eax, 1
mov dword [0x1005cb98], eax
push 0
push 0
mov ecx, 0x1005cb88
mov dword [esp + 0x70], 1
mov dword [0x1005cb88], 0
mov dword [0x1005cb8c], 0
call fcn.1002ed70
mov dword [0x1005cb88], eax
mov ecx, 0x1005cb90
mov byte [esp + 0x68], 2
mov dword [0x1005cb90], 0
mov dword [0x1005cb94], 0
call fcn.1002ece0
push 0x100457f0
mov dword [0x1005cb90], eax
mov byte [esp + 0x6c], 1
call fcn.1003e542
add esp, 4
mov byte [esp + 0x68], 0
mov edx, dword [0x1005cb90]
mov ebp, dword [esp + 0x74]
mov eax, dword [edx + 4]
mov ecx, edx
cmp byte [eax + 0xd], 0
jne 0x10031f1d
mov esi, dword [ebp]
cmp dword [eax + 0x10], esi
jae 0x10031f00
mov eax, dword [eax + 8]
jmp 0x10031f04
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10031ef6
cmp ecx, edx
je 0x10031f1d
cmp esi, dword [ecx + 0x10]
jb 0x10031f1d
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x14]
jmp 0x10031f25
mov dword [esp + 0x18], edx
lea esi, [esp + 0x18]
mov esi, dword [esi]
cmp esi, edx
je 0x1003200a
mov ecx, dword [0x1005cb88]
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 0x14]
je 0x10031fd2
push 0
push 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0
call fcn.1002ed70
mov edx, eax
mov dword [esp + 0x34], edx
mov ecx, dword [esi + 0x14]
mov edi, dword [0x1005cb88]
mov dword [esp + 0x68], 3
cmp ecx, edi
je 0x10031f90
push 1
push dword [ecx]
push ecx
push 0x1005cb88
push edx
lea ecx, [esp + 0x48]
call fcn.1002fd00
mov edx, dword [esp + 0x34]
mov edi, dword [0x1005cb88]
nop
mov eax, dword [edx]
cmp eax, edx
je 0x10031fb1
push 1
push dword [eax]
mov ecx, 0x1005cb88
push eax
lea eax, [esp + 0x40]
push eax
push edi
call fcn.1002fd00
mov edi, dword [0x1005cb88]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x34]
mov dword [esi + 0x14], eax
call fcn.100311f0
push dword [esp + 0x34]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
mov ecx, dword [0x1005cb88]
add esp, 4
mov eax, dword [ecx + 4]
mov esi, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x10031ff4
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
push 0x2c
call fcn.1003e388
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], 4
test eax, eax
je 0x10032032
push dword [ebp]
mov ecx, eax
call fcn.1002dd00
mov esi, eax
jmp 0x10032034
xor esi, esi
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x30], esi
call fcn.1002a6e0
push esi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.10001070
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], 5
mov dword [esp + 0x58], eax
test eax, eax
je 0x1003207e
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x5c], 0
mov edi, dword [0x1005cb88]
lea eax, [esp + 0x54]
push eax
push dword [edi + 4]
mov ecx, 0x1005cb88
push edi
mov byte [esp + 0x74], 6
call fcn.1002a880
mov edx, dword [0x1005cb8c]
mov ecx, 0xccccccb
sub ecx, edx
mov esi, eax
cmp ecx, 1
jae 0x100320c3
push str.list_T__too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
inc edx
mov dword [0x1005cb8c], edx
mov dword [edi + 4], esi
mov eax, dword [esi + 4]
or ebx, 0xffffffff
mov dword [eax], esi
mov esi, dword [esp + 0x58]
mov byte [esp + 0x68], 5
test esi, esi
je 0x10032106
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10032106
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x10032106
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [0x1005cb88]
mov ecx, dword [ebp]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
push eax
mov ecx, 0x1005cb90
call fcn.1002a810
push eax
add eax, 0x10
push eax
push 0
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1005cb90
call fcn.1002bbd0
push ebp
lea eax, [esp + 0x24]
push eax
mov ecx, 0x1005cb90
call fcn.10033410
mov ecx, dword [0x1005cb88]
mov eax, dword [eax]
mov ecx, dword [ecx + 4]
add eax, 0x10
mov dword [ecx + 0x10], eax
mov ebp, dword [0x1005cb94]
mov eax, dword [esp + 0x78]
cmp ebp, eax
jbe 0x100321de
mov ebx, dword [0x1005cb88]
mov edi, dword [ebx]
cmp edi, ebx
je 0x100321db
lea esp, [esp]
cmp ebp, eax
jbe 0x100321db
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100321d0
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x100321d0
mov esi, edi
mov edi, dword [edi]
push dword [esi + 0x10]
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1005cb90
call fcn.1002eef0
push dword [eax + 4]
mov ecx, 0x1005cb90
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.100325c0
push esi
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x1005cb88
call fcn.10032be0
dec ebp
jmp 0x100321d3
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x78]
cmp edi, ebx
jne 0x10032180
or ebx, 0xffffffff
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 4], 0
mov esi, dword [edi + 4]
mov dword [esp + 0x30], esi
mov dword [edi + 4], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 1
mov byte [esp + 0x68], 0
test esi, esi
je 0x10032239
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x10032239
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x10032239
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret