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

Disassembly:
push 0xffffffffffffffff
push 0x423723
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4342ac]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa8]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test byte [0x434b78], 1
mov dword [esp + 0x1c], edi
jne 0x40cb66
or dword [0x434b78], 1
push 0xc
mov dword [esp + 0xa4], ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0xa0], 1
je 0x40cb27
mov ecx, esi
call fcn.0040c290
mov dword [esi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
jmp 0x40cb29
xor esi, esi
push esi
mov ecx, 0x434b74
mov byte [esp + 0xa4], 0
mov dword [0x434b70], esi
call fcn.0040c9a0
push esi
push esi
push 0x434b74
call fcn.0040c0c0
push 0x4260a0
call fcn.00411e61
add esp, 0x10
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [0x434b70]
cmp dword [eax + 8], ebx
jne 0x40cd72
push 0x42bcb6
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__]
mov ebx, 2
mov dword [esp + 0xa0], ebx
mov esi, 1
movzx eax, si
movzx ebp, ax
lea ecx, [ebp + 1]
cmp ecx, ebx
jl 0x40cdc2
cmp ax, 0xc
ja 0x40cdcf
mov word [esp + 0x14], ax
mov eax, dword [ebp*4 + 0x4278cc]
push eax
lea ecx, [esp + 0x7c]
call dword [0x4271e0]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00402eab
add esp, 8
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 3
call dword [0x42715c]
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 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_]
push esi
sub esp, 0x1c
lea edx, [esp + 0x98]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x60]
push eax
call fcn.0040c160
add esp, 0x24
mov edi, eax
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov cx, word [edi + 0x1c]
mov word [esp + 0x3c], cx
mov ecx, dword [0x434b70]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0xa8], 5
call fcn.0040c4c0
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 4
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 + 0x40]
mov byte [esp + 0xa0], 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 ebp, dword [ebp*4 + 0x427894]
push ebp
lea ecx, [esp + 0x7c]
call dword [0x4271e0]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00402eab
add esp, 8
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 6
call dword [0x42715c]
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 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_]
push esi
sub esp, 0x1c
lea eax, [esp + 0x98]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x60]
push ecx
call fcn.0040c160
add esp, 0x24
mov edi, eax
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dx, word [edi + 0x1c]
mov word [esp + 0x3c], dx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [0x434b70]
mov byte [esp + 0xa8], 8
call fcn.0040c4c0
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 7
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 + 0x40]
mov byte [esp + 0xa0], 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_]
add esi, 1
cmp si, 0xc
jbe 0x40cb94
lea ecx, [esp + 0x78]
mov dword [esp + 0xa0], 0xffffffff
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]
xor ebx, ebx
mov ecx, dword [0x434b70]
mov dword [edi], ecx
mov edx, dword [0x434b74]
mov dword [edi + 4], edx
mov eax, dword [0x434b74]
cmp eax, ebx
je 0x40cd98
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00411db3
add esp, 0x90
ret
mov edx, dword [esp + 0x14]
push 0
push eax
push edx
call fcn.004050a3
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004050a3
int3