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

Disassembly:
push 0xffffffffffffffff
push 0x100319a0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10043890]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x78]
call fcn.10004c40
mov eax, dword [esi + 0x3c]
mov ebp, dword [esp + 0xa0]
xor ebx, ebx
mov dword [esp + 0x98], ebx
cmp eax, ebx
je 0x100123a9
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
lea esi, [edx + eax - 1]
lea edi, [esi + esi*2]
shl edi, 4
test ebx, ebx
jne 0x10012399
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x10012358
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0xc]
add ecx, edi
call fcn.1000cd00
mov edx, dword [esp + 0xa4]
cmp dword [eax], edx
jne 0x10012393
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1001238e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebp + 0xc]
add ebx, edi
dec esi
sub edi, 0x30
jmp 0x10012333
push ebx
lea ecx, [esp + 0x7c]
call fcn.1000dd50
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esi + 0x3c]
movzx eax, word [esi + 0x40]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x7c]
mov word [esp + 0x28], ax
call fcn.1000ef60
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x100123dd
lea ecx, [esp + 0x60]
mov dword [eax], ecx
jmp 0x100123df
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x9c], 2
call fcn.1000d210
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x9c], 3
call fcn.10005ed0
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
mov byte [esp + 0x9c], 4
call fcn.10012220
mov eax, dword [esp + 0x54]
mov byte [esp + 0x98], 2
cmp eax, ebx
je 0x10012448
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebx
je 0x10012472
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x10]
add esp, 4
cmp dword [ebp + 0xc], edi
jbe 0x10012499
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebp]
mov ebx, esi
mov dword [esp + 0x24], edi
test esi, esi
jne 0x100124be
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
lea ecx, [edi - 0x30]
cmp ecx, dword [eax + 0x10]
ja 0x100124c9
test esi, esi
je 0x100124c2
mov esi, dword [esi]
jmp 0x100124c4
mov eax, dword [esi]
jmp 0x100124ae
xor esi, esi
cmp ecx, dword [esi + 0xc]
jae 0x100124cf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea esi, [edi - 0x30]
test ebx, ebx
jne 0x10012551
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x100124e9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x5c]
mov ebx, dword [eax]
lea edi, [esi + 0x18]
mov esi, dword [ecx + 0x44]
mov edx, eax
mov eax, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
lea esp, [esp]
test esi, esi
je 0x1001251a
cmp esi, dword [esp + 0x20]
je 0x10012524
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x24]
je 0x100125b0
test esi, esi
jne 0x10012555
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 0x18]
jne 0x10012543
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
add ebx, 0x10
test ecx, ecx
jne 0x10012559
xor eax, eax
jmp 0x10012561
mov eax, dword [ebx]
jmp 0x100124de
mov esi, dword [esi]
jmp 0x10012538
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x1001257b
mov eax, dword [ebx]
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x10012596
cmp ecx, esi
jbe 0x10012585
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
push ebx
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.1000d3d0
lea ecx, [esp + 0x18]
call fcn.1001b710
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x10012510
mov eax, dword [ecx + 0x7c]
mov esi, dword [ecx + 0x64]
mov edi, dword [eax]
mov edx, eax
mov eax, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
lea esp, [esp]
test esi, esi
je 0x100125da
cmp esi, dword [esp + 0x20]
je 0x100125e4
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
jmp 0x100125ea
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x24]
je 0x100126a7
test esi, esi
jne 0x100126a0
call ebx
cmp edi, dword [esi + 0x18]
jne 0x10012605
call ebx
add edi, 0x10
push edi
lea ecx, [esp + 0x34]
call fcn.10005ed0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
xor edi, edi
sar eax, 2
xor esi, esi
mov byte [esp + 0x98], 5
cmp eax, edi
jbe 0x10012658
cmp esi, eax
jb 0x10012633
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x3c]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + esi*4]
push eax
push ebp
call fcn.100122c0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x10012633
lea ecx, [esp + 0x18]
call fcn.1000a2e0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x98], 2
cmp eax, edi
je 0x1001267a
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x100125d0
mov esi, dword [esi]
jmp 0x100125fe
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x100126b8
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x60]
xor eax, eax
push ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x88]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x100126e9
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x78]
push edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8