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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10030768
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1003f098]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x1003f098]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test dword [ebx + 0x14], 0x4000
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x14], al
jne 0x100031c8
movzx eax, byte [ebp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call edx
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.10006090
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.100015f0
xor esi, esi
mov edi, eax
mov dword [esp + 0x90], esi
call fcn.10005b50
mov dword [esp + 0x90], 0xffffffff
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp edi, esi
je 0x10003240
push esi
lea ecx, [esp + 0x14]
call fcn.10027b20
mov eax, dword [edi + 4]
cmp eax, esi
jbe 0x10003215
cmp eax, 0xffffffff
jae 0x10003215
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
not esi
call fcn.10027b60
and esi, edi
je 0x1000323e
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
call fcn.10008bf0
add esp, 4
xor esi, esi
mov dword [esp + 0x40], esi
push 8
mov dword [esp + 0x94], 1
call fcn.10008f30
add esp, 4
cmp eax, esi
je 0x1000341b
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
mov dword [edx], ecx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], esi
mov byte [esp + 0x44], 0
cmp byte [ebp + 0x1c], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x90], 2
lea esi, [esp + 0x60]
je 0x100032d4
call fcn.10004c30
mov esi, eax
lea edi, [esp + 0x40]
mov byte [esp + 0x90], 3
call fcn.10002bb0
mov esi, 0x10
mov byte [esp + 0x90], 2
cmp dword [esp + 0x78], esi
jb 0x1000330c
mov eax, dword [esp + 0x64]
push eax
jmp 0x10003304
call fcn.10004c10
mov esi, eax
lea edi, [esp + 0x40]
mov byte [esp + 0x90], 4
call fcn.10002bb0
mov esi, 0x10
mov byte [esp + 0x90], 2
cmp dword [esp + 0x78], esi
jb 0x1000330c
mov ecx, dword [esp + 0x64]
push ecx
call fcn.10008d30
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.10002e40
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
mov eax, edx
test eax, eax
mov eax, dword [esp + 0x54]
jl 0x10003352
jg 0x10003340
test ecx, ecx
je 0x10003352
mov dword [esp + 0x20], edx
cmp ecx, eax
jbe 0x10003352
sub ecx, eax
mov dword [esp + 0x20], edx
mov edi, ecx
jmp 0x10003354
xor edi, edi
mov ecx, dword [ebx + 0x14]
and ecx, 0x1c0
cmp ecx, 0x40
je 0x10003391
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov bl, byte [esp + 0x14]
push edx
push eax
mov eax, edi
lea edi, [esp + 0x24]
call fcn.10004bb0
mov ecx, dword [eax]
mov ebx, dword [esp + 0x34]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x5c]
add esp, 8
mov dword [ebp + 0x10], edx
xor edi, edi
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x1000339f
lea ecx, [esp + 0x44]
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x34]
push edx
call fcn.10005280
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov eax, dword [eax + 4]
add esp, 0xc
xor edx, edx
push eax
mov dword [ebp + 0x10], eax
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov bl, byte [esp + 0x18]
mov eax, edi
mov edi, dword [esp + 0x2c]
push ecx
call fcn.10004bb0
add esp, 8
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x100033f9
mov eax, dword [esp + 0x44]
push eax
call fcn.10008d30
add esp, 4
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], eax
mov byte [esp + 0x44], al
call fcn.10002e40
mov eax, edi
jmp 0x100031a5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esi
call fcn.10006230
push 0x1003ceec
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], vtable.std::bad_alloc.0
call fcn.1000e000
int3