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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10122d18
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0xcc]
xor ebx, ebx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], edx
xor esi, esi
mov dword [esp + 0x1c], ebx
call fcn.100058e0
mov dword [esp + 0x348], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x348], 1
mov dword [esp + 0x24], esi
call fcn.1010d600
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x104]
sub eax, esi
je 0x1000521d
sub eax, 1
jne 0x1000538e
push 0x160
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov byte [esp + 0x348], 7
je 0x100051f9
cmp dword [esp + 0x13c], 0x10
mov edi, dword [esp + 0x128]
jae 0x100051e4
lea edi, [esp + 0x128]
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call fcn.100e90b0
jmp 0x100051fb
xor eax, eax
cmp eax, esi
mov byte [esp + 0x348], 1
je 0x10005212
mov edx, eax
mov ecx, 1
lock xadd dword [edx], ecx
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x100052f4
push 0x160
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, esi
mov byte [esp + 0x348], 2
je 0x1000529d
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x10c]
call fcn.10100690
add esp, 4
mov ebx, 3
mov byte [esp + 0x348], bl
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x18], 1
jb 0x1000526f
mov eax, dword [eax + 4]
jmp 0x10005272
add eax, 4
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x34c], 4
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.100e9250
jmp 0x1000529f
xor eax, eax
cmp eax, esi
je 0x100052ae
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
test bl, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x348], 5
je 0x100052d3
and ebx, 0xfffffffd
lea ecx, [esp + 0x78]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, 1
mov dword [esp + 0x348], 1
je 0x100052f0
lea ecx, [esp + 0x5c]
and ebx, 0xfffffffe
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
test eax, fcn.1009bff0
je 0x100053ad
cmp dword [esp + 0x40], esi
je 0x10005368
lea esi, [esp + 0x78]
lea eax, [esp + 0x24]
call fcn.100017c0
lea ecx, [esp + 0x5c]
push ecx
mov bl, 8
mov ecx, eax
mov byte [esp + 0x34c], bl
call fcn.10100530
add esp, 4
mov ecx, dword [esp + 0x40]
push eax
mov byte [esp + 0x34c], 9
call dword [0x1012717c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x348], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, esi
mov byte [esp + 0x348], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor esi, esi
cmp edi, esi
mov byte [esp + 0x348], 0
je 0x1000538e
mov edx, edi
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1000538e
push edi
call fcn.100e9600
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
mov dword [esp + 0x34c], 0xffffffff
call fcn.100059a0
xor al, al
jmp 0x100058b3
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x68], esp
call fcn.10009740
lea edx, [esp + 0x194]
push edx
call fcn.10001cc0
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x348], 0xb
cmp dword [esp + 0xfc], eax
je 0x1000541c
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xec]
call fcn.10100690
add esp, 4
mov byte [esp + 0x348], 0xc
or ebx, 4
push eax
mov dword [esp + 0x1c], ebx
call fcn.1003c660
add esp, 4
test al, al
mov byte [esp + 0x17], 1
jne 0x10005421
mov byte [esp + 0x17], 0
test bl, 4
mov dword [esp + 0x348], 0xb
je 0x1000543b
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x17], 0
je 0x100054d1
cmp dword [esp + 0x100], 0x10
mov eax, dword [esp + 0xec]
jae 0x1000545e
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x34c], 0xd
call fcn.10100690
add esp, 4
lea esi, [esp + 0x24]
lea ebx, [esp + 0x30]
mov ecx, eax
mov byte [esp + 0x348], 0xe
call fcn.100e8a40
test eax, eax
lea ecx, [esp + 0x5c]
sete bl
mov byte [esp + 0x348], 0xd
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0x348], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x100054d1
lea edx, [esp + 0x30]
mov dword [esp + 0x1ec], edx
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x9c], 0
je 0x10005559
mov eax, dword [edi + 0x98]
test eax, eax
jne 0x100054eb
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x2a8]
push eax
call fcn.10005a40
lea edx, [esp + 0x5c]
mov bl, 0xf
lea ecx, [esi + 0x88]
push edx
mov byte [esp + 0x34c], bl
call fcn.10100690
add esp, 4
push 0
lea edi, [esp + 0x2a8]
mov byte [esp + 0x34c], 0x10
call fcn.1003f8a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x348], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x1c]
mov ebx, edi
call fcn.100e8fd0
mov eax, edi
push eax
mov byte [esp + 0x34c], 0xb
call fcn.100018f0
mov edi, esi
test edi, edi
je 0x10005568
mov ecx, edi
mov edx, 1
lock xadd dword [ecx], edx
mov esi, dword [esp + 0x178]
test esi, esi
mov dword [esp + 0x178], edi
je 0x10005594
mov eax, esi
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10005594
push esi
call fcn.100e9600
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0xd0]
call fcn.10100690
add esp, 4
push eax
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x34c], 0x11
call dword [0x1012717c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x348], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x28c]
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x20]
and eax, 0xffffffbf
or eax, 0xa2
mov dword [esp + 0x290], ecx
mov dword [esp + 0x28c], eax
mov eax, dword [edx]
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1fc], 1
call fcn.10089fa0
mov esi, dword [esp + 0x44]
mov byte [esp + 0x348], 0x12
call fcn.10003000
mov byte [esp + 0x348], 0xb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10005652
lea ecx, [eax + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10005652
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x50]
push ecx
push esi
call fcn.100e2fc0
xor ebx, ebx
xor edi, edi
mov byte [esp + 0x348], 0x13
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x148]
cmp esi, edi
je 0x10005703
mov ecx, dword [esp + 0x14c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x10005703
mov edx, dword [esp + 0x18]
add esi, edx
push esi
lea eax, [esp + 0x54]
call fcn.100094e0
mov edi, eax
lea ebx, [esp + 0x50]
push esi
mov eax, ebx
call fcn.10009490
mov edx, dword [esp + 0x48]
push edx
push edi
push ebx
mov ecx, ebx
push eax
push ecx
lea edi, [esp + 0x40]
mov dword [esp + 0x40], 0
call fcn.1000af50
add esp, 0x14
cmp dword [esp + 0x2c], 0
jne 0x100056ee
mov ecx, dword [esp + 0x44]
push esi
call fcn.100e2e40
add dword [esp + 0x20], 1
add dword [esp + 0x18], 0x1c
mov ebx, dword [esp + 0x20]
xor edi, edi
jmp 0x10005671
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
test eax, fcn.1009bff0
je 0x1000581b
mov ebx, dword [esp + 0x40]
cmp ebx, edi
je 0x1000577e
lea esi, [esp + 0x94]
lea eax, [esp + 0x24]
call fcn.100017c0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
mov byte [esp + 0x34c], 0x14
call fcn.10100530
add esp, 4
push eax
mov ecx, ebx
mov byte [esp + 0x34c], 0x15
call dword [0x1012717c]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x348], 0x14
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, esi
mov byte [esp + 0x348], 0x13
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esp + 0x50]
mov byte [esp + 0x348], 0xb
call fcn.10008550
mov byte [esp + 0x348], 0xa
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x100057b1
mov edx, dword [esp + 0x3c]
sub edx, eax
push edx
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_char_::deallocate_char___unsigned_int_]
lea eax, [esp + 0x174]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x34c], 1
call fcn.10001e40
mov byte [esp + 0x348], 0
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x100057fc
mov ecx, esi
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100057fc
push esi
call fcn.100e9600
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0xcc]
push eax
mov dword [esp + 0x34c], 0xffffffff
call fcn.100059a0
xor al, al
jmp 0x100058b3
lea eax, [esp + 0x50]
mov byte [esp + 0x348], 0xb
call fcn.10008550
mov byte [esp + 0x348], 0xa
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x1000584e
mov ecx, dword [esp + 0x3c]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_char_::deallocate_char___unsigned_int_]
lea edx, [esp + 0x174]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x34c], 1
call fcn.10001e40
mov byte [esp + 0x348], 0
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x10005899
mov eax, esi
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10005899
push esi
call fcn.100e9600
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x34c], 0xffffffff
call fcn.100059a0
mov al, 1
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret 8