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

Disassembly:
push 0xffffffffffffffff
push 0x411b8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [esp + 0xa0]
push ebx
push ebp
mov ebp, ecx
push esi
lea esi, [ebp + 4]
push edi
mov ecx, esi
mov dword [esp + 0x20], ebp
mov dword [ebp], eax
call fcn.00404eb0
mov dword [esi + 4], eax
mov byte [eax + 0x11], 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]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0xac], 1
call fcn.00404de0
add esp, 4
cmp dword [esp + 0x54], ebx
mov byte [esp + 0xa8], 2
je 0x40c5e4
lea edx, [esp + 0x40]
lea ecx, [esp + 0x18]
call fcn.00410bd0
mov edx, dword [eax]
add eax, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 3
mov dword [esp + 0x14], edx
call fcn.004029c0
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov byte [esp + 0xa8], 2
je 0x40c55a
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c55a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c55a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
cmp dword [esp + 0x10], ebx
jne 0x40c5ee
push str.Unable_to_open_message_catalog:
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x64]
mov bl, 4
push edx
mov byte [esp + 0xb4], bl
call fcn.00401740
add esp, 0xc
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], 5
call fcn.00401aa0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa8], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x78]
call fcn.00410d90
lea ecx, [esp + 0x78]
mov byte [esp + 0xa8], bl
call fcn.00401b00
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
je 0x40c69d
mov bl, 1
mov byte [esp + 0x18], bl
mov ebp, 1
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
call fcn.004028e0
mov edx, dword [edi]
push eax
push ebp
push edx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], 8
call fcn.00410910
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa8], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [esp + 0x38]
xor edi, edi
test eax, eax
jbe 0x40c675
jmp 0x40c650
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40c65f
lea eax, [esp + 0x28]
lea eax, [eax + edi*2]
push eax
mov ecx, esi
call fcn.0040b220
mov byte [eax], bl
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jb 0x40c650
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
inc bl
inc ebp
cmp bl, 0x39
mov byte [esp + 0x18], bl
jb 0x40c600
mov ebp, dword [esp + 0x20]
jmp 0x40c6d6
mov bl, 1
nop
mov cl, bl
call fcn.00410140
mov edi, eax
test edi, edi
je 0x40c6cf
lea ecx, [ecx]
mov al, byte [edi]
test al, al
je 0x40c6cf
movsx cx, al
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ecx
mov ecx, esi
call fcn.0040b220
inc edi
mov byte [eax], bl
jne 0x40c6b0
inc bl
cmp bl, 0x39
jb 0x40c6a0
lea ecx, [esp + 0x40]
mov byte [esp + 0xa8], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x14]
test esi, esi
mov byte [esp + 0xa8], 0
je 0x40c71e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c71e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c71e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret 4