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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c431
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x43d2ac]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov esi, ecx
mov dword [esp + 0x2c], esi
jb 0x401a0d
mov eax, dword [eax + 4]
jmp 0x401a10
add eax, 4
push 1
push 0x40
push 2
push eax
lea ecx, [esp + 0xcc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
and dword [esp + 0x1e0], 0
call fcn.004039c8
mov dword [esp + 0x14], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 8], eax
and dword [esp + 0x18], 0
test esi, esi
mov byte [esp + 0x1e0], 1
jne 0x401a64
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0x432d6e
lea ecx, [esp + 0x164]
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 byte [esp + 0x1e0], 2
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], esi
mov eax, dword [esi + 4]
lea edi, [esp + 0x3c]
lea esi, [esp + 0x24]
mov dword [esp + 0x40], eax
call fcn.0040263e
test al, al
jne 0x401e71
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x401abb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 4]
jne 0x401ac6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [edi + 4]
lea esi, [ebx + 0xc]
mov dword [esp + 0x30], esi
jne 0x401ad8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0
push str.__n__
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
push eax
push 0
lea eax, [esp + 0x14c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x1e0], 3
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 4]
jmp 0x401b2c
lea eax, [esp + 0x144]
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
test al, al
pop ecx
pop ecx
je 0x401b28
mov esi, dword [esi + 8]
jmp 0x401b2c
mov ebx, esi
mov esi, dword [esi]
cmp byte [esi + 0x2d], 0
je 0x401b0b
cmp ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
je 0x401b62
add ebx, 0xc
lea eax, [esp + 0x144]
push ebx
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
test al, al
pop ecx
pop ecx
jne 0x401b62
lea eax, [esp + 0x34]
jmp 0x401b76
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
mov edi, dword [esp + 0x14]
je 0x401b8b
lea eax, [esp + 0x10]
cmp ecx, eax
je 0x401b91
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
jne 0x401e46
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x58]
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 byte [esp + 0x70], 1
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x1e4], 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 al, byte [esp + 0x70]
mov byte [esp + 0x90], al
lea eax, [esp + 0x74]
push eax
lea edi, [esp + 0xb4]
lea ebx, [esp + 0x14]
mov byte [esp + 0x1e4], 5
call fcn.0040268f
lea ecx, [esp + 0x74]
mov byte [esp + 0x1e0], 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 + 0x54]
mov byte [esp + 0x1e0], 3
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 + 0x144]
push eax
lea ecx, [esp + 0x164]
call dword [0x42e180]
push 0x432d70
push ecx
push 0x432d74
lea eax, [esp + 0x16c]
push eax
lea eax, [esp + 0xcc]
push 0x432d78
push eax
call fcn.00403ea6
pop ecx
pop ecx
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
pop ecx
pop ecx
push eax
call fcn.00403ea6
add esp, 0xc
push eax
call fcn.00403ea6
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ecx
mov eax, dword [ecx + 4]
lea edi, [esp + 0x4c]
lea esi, [esp + 0x1c]
mov dword [esp + 0x50], eax
call fcn.0040263e
test al, al
jne 0x401e46
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x401caa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x401cb5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
lea edi, [ebx + 0xc]
jne 0x401cc3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0
mov esi, str.__n__
push esi
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
push eax
push 0
lea eax, [esp + 0x184]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
lea eax, [esp + 0x160]
push eax
lea eax, [esp + 0x180]
push eax
mov byte [esp + 0x1e8], 6
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
test al, al
pop ecx
pop ecx
je 0x401e1b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + 4]
jne 0x401d21
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
cmp ebx, dword [eax + 4]
jne 0x401d30
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
mov ecx, dword [esp + 0x34]
push 0
push esi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
inc eax
push eax
lea eax, [esp + 0x1bc]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x1e0], 7
mov eax, dword [esp + 0x1c]
cmp ebx, dword [eax + 4]
jne 0x401d6d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x94]
push eax
add edi, 0x1c
push edi
call fcn.004054ec
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x19c]
mov byte [esp + 0x1e4], 8
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 + 0x94]
mov byte [esp + 0x1e0], 0xa
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 [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x432d70
lea eax, [esp + 0x19c]
push eax
push 0x432d7c
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0xcc]
push eax
call esi
pop ecx
pop ecx
push eax
call fcn.00403ea6
pop ecx
pop ecx
push eax
call esi
pop ecx
pop ecx
push eax
call fcn.00403ea6
pop ecx
pop ecx
lea ecx, [esp + 0x198]
mov byte [esp + 0x1e0], 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 + 0x1b4]
mov byte [esp + 0x1e0], 6
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 esi, [esp + 0x1c]
call fcn.00402b26
lea ecx, [esp + 0x17c]
mov byte [esp + 0x1e0], 3
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 ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
jmp 0x401c80
lea esi, [esp + 0x24]
call fcn.00402b26
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e0], 2
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 ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x401a91
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
lea ecx, [esp + 0x160]
mov byte [esp + 0x1e0], 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_]
lea eax, [esp + 0x10]
mov byte [esp + 0x1e0], 0
call fcn.0040265a
or dword [esp + 0x1e0], 0xffffffff
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
xor eax, eax
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.00418c9a
mov esp, ebp
pop ebp
ret 4