Function at 0x41e800
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [esp + 0xd4]
mov al, byte [ebp + 0x24]
mov dword [esp + 0x34], ebp
test al, al
je 0x41e9bd
mov bl, byte [esp + 0x23]
xor esi, esi
mov ecx, dword [edi]
push 0xffffffffffffffff
push 0x4300b4
push 8
call fcn.004163c0
cmp eax, 6
jl 0x41eb4e
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x23]
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0xd0], 0
mov byte [esp + 0x54], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0xa
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0xdc], 1
call fcn.0041e4e0
mov ecx, dword [edi]
push 0xffffffffffffffff
test al, al
je 0x41ea7d
push 0x4300a8
push 0xb
call fcn.004163c0
push 0xa
lea edx, [esp + 0x54]
push 0x2a
push edx
push edi
mov ecx, ebp
call fcn.0041e4e0
test al, al
je 0x41ea86
lea eax, [ebp + 4]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_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__]
add esp, 8
test al, al
je 0x41e8ff
lea edx, [ebp + 0x14]
lea eax, [esp + 0x50]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_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__]
add esp, 8
test al, al
jne 0x41ea93
cmp dword [esp + 0x2c], 8
jne 0x41e96f
cmp dword [esp + 0x58], 4
jne 0x41e96f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41e927
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x28]
mov ecx, eax
jmp 0x41e92d
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x3f
jne 0x41e96f
test eax, eax
jne 0x41e93b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0x69983
jne 0x41e96f
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x41e95a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0x7b6
je 0x41ea93
mov ecx, dword [edi]
cmp esi, 2
push 0xffffffffffffffff
jge 0x41eac3
push 0x430074
push 0x30
call fcn.004163c0
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
inc esi
cmp esi, 3
jl 0x41e83d
mov ecx, dword [edi]
or esi, 0xffffffff
push esi
push 0x430070
push 2
call fcn.004163c0
mov eax, dword [ebp + 0x30]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
je 0x41e9de
mov edx, eax
mov eax, dword [ebp + 0x34]
mov ecx, dword [edi]
push esi
push edx
push eax
call fcn.004163c0
mov eax, dword [edi]
push 0x42ffc0
push eax
call fcn.00416510
mov ecx, dword [0x4303e0]
add esp, 8
push 0x42ff94
push 0
push 0
call fcn.004158e0
lea ecx, [esp + 0x60]
call fcn.00423280
lea ecx, [esp + 0x3c]
mov dword [esp + 0xcc], 2
call fcn.0041fec0
mov edx, dword [ebp]
mov ecx, ebp
mov byte [esp + 0xcc], 3
call dword [edx + 4]
test al, al
je 0x41eb55
lea ecx, [esp + 0x60]
call fcn.00423380
test al, al
jne 0x41eb01
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 2
call fcn.0041fed0
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], esi
call fcn.004232c0
xor al, al
jmp 0x41f33b
push 0x42ff84
push 0xc
jmp 0x41eaca
mov ecx, dword [edi]
push 0xffffffffffffffff
push 0x42ff74
push 0xc
jmp 0x41eaca
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41e9bd
push 0x42ff50
push 0x22
call fcn.004163c0
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x41f33b
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41eb2d
mov ecx, dword [edi]
lea edx, [esp + 0x60]
mov dword [eax + 4], ecx
push eax
push 0x41e760
lea ecx, [esp + 0x44]
mov dword [eax], edx
call fcn.0041fee0
test al, al
jne 0x41eb55
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 2
call fcn.0041fed0
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], esi
call fcn.004232c0
xor al, al
jmp 0x41f33b
mov edx, dword [ebp + 0x28]
mov al, byte [esp + 0x23]
inc edx
push 0
lea ecx, [esp + 0x14]
mov dword [ebp + 0x28], edx
mov dword [esp + 0x3c], esi
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0x4c]
mov byte [esp + 0xcc], 4
test al, al
jne 0x41f2b0
mov al, byte [esp + 0x48]
test al, al
jne 0x41ebb5
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x40]
test edx, edx
jne 0x41eba0
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0xd4]
mov eax, dword [eax + 0x44]
push 0xffffffffffffffff
push edx
mov ecx, dword [ecx]
push eax
call fcn.004163c0
mov edi, 0x430390
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41ebfb
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x430390
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0xd4]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x40]
push ebx
call fcn.0041e4e0
test al, al
je 0x41f2b0
lea edx, [esp + 0x10]
push 0x42ff48
push edx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
jne 0x41f2b0
mov esi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
lea eax, [esp + 0x10]
push 0x42ff3c
push eax
call esi
add esp, 8
test al, al
je 0x41ec87
mov dword [esp + 0x38], 0
mov edi, 0x430390
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41efeb
jmp 0x41efc7
lea eax, [esp + 0x10]
push 0x42ff34
push eax
call esi
add esp, 8
test al, al
je 0x41eca8
or ecx, 0xffffffff
mov edi, 0x430390
mov dword [esp + 0x38], ecx
jmp 0x41ec64
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41ecc2
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
mov eax, edx
jmp 0x41ecc7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 3
jne 0x41ecde
mov eax, dword [esp + 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
jmp 0x41f2a1
mov eax, dword [esp + 0x18]
mov esi, 6
cmp eax, esi
jne 0x41efef
test edx, edx
je 0x41ed05
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
mov eax, edx
jmp 0x41ed0a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x43
jne 0x41ee83
cmp dword [esp + 0x18], 1
jb 0x41ed31
test edx, edx
je 0x41ed31
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 1]
jmp 0x41ed36
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x72
jne 0x41ee83
cmp dword [esp + 0x18], 2
jb 0x41ed5d
test edx, edx
je 0x41ed5d
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 2]
jmp 0x41ed62
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x53
jne 0x41ee83
cmp dword [esp + 0x18], 3
jb 0x41ed89
test edx, edx
je 0x41ed89
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 3]
jmp 0x41ed8e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x68
jne 0x41ee83
cmp dword [esp + 0x18], 4
jb 0x41edb5
test edx, edx
je 0x41edb5
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 4]
jmp 0x41edba
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x65
jne 0x41ee83
cmp dword [esp + 0x18], 5
jb 0x41ede1
test edx, edx
je 0x41ede1
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 5]
jmp 0x41ede6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x6c
jne 0x41ee83
mov al, byte [esp + 0x48]
test al, al
jne 0x41ee44
lea ecx, [esp + 0x60]
call fcn.00423380
test al, al
je 0x41ee44
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41ee30
mov ecx, dword [ebx]
lea edx, [esp + 0x60]
mov dword [eax + 4], ecx
push eax
push 0x41e760
lea ecx, [esp + 0x44]
mov dword [eax], edx
call fcn.0041fee0
test al, al
jne 0x41ee44
lea ecx, [esp + 0x60]
call fcn.004232d0
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
call fcn.0041ff20
mov edi, 0x430390
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41efeb
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov esi, 0x430390
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x41efdb
cmp dword [esp + 0x18], esi
jne 0x41efef
test edx, edx
je 0x41eea3
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
mov eax, edx
jmp 0x41eea8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x44
jne 0x41efef
cmp dword [esp + 0x18], 1
jb 0x41eecf
test edx, edx
je 0x41eecf
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 1]
jmp 0x41eed4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x65
jne 0x41efef
cmp dword [esp + 0x18], 2
jb 0x41eefb
test edx, edx
je 0x41eefb
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 2]
jmp 0x41ef00
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x53
jne 0x41efef
cmp dword [esp + 0x18], 3
jb 0x41ef27
test edx, edx
je 0x41ef27
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 3]
jmp 0x41ef2c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x68
jne 0x41efef
cmp dword [esp + 0x18], 4
jb 0x41ef53
test edx, edx
je 0x41ef53
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 4]
jmp 0x41ef58
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x65
jne 0x41efef
cmp dword [esp + 0x18], 5
jb 0x41ef7f
test edx, edx
je 0x41ef7f
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x14]
lea eax, [edx + 5]
jmp 0x41ef84
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax], 0x6c
jne 0x41efef
mov al, byte [esp + 0x48]
test al, al
je 0x41efa5
lea ecx, [esp + 0x60]
call fcn.004232d0
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
call fcn.0041ff20
mov edi, 0x430390
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41efeb
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x430390
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x48]
test al, al
je 0x41f1e0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41f109
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x41f109
mov al, byte [esp + 0x23]
xor edi, edi
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov byte [esp + 0xcc], 5
ja 0x41f052
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.MSVCP60.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__::erase_unsigned_int__unsigned_int_]
jmp 0x41f0b0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
sub esi, eax
mov edx, dword [ecx]
sub edx, eax
cmp edx, esi
ja 0x41f068
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, edi
jbe 0x41f0b0
mov eax, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x28]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41f0b0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, 0x8080808
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
xor edi, edi
mov eax, dword [esp + 0x28]
cmp eax, edi
jne 0x41f0bd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebx]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.004163c0
mov eax, dword [esp + 0x28]
mov byte [esp + 0xcc], 4
cmp eax, edi
je 0x41f0f9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41f0f0
cmp al, 0xff
je 0x41f0f0
dec al
mov byte [ecx], al
jmp 0x41f0f9
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov edi, 0x430070
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x18]
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx]
sub eax, edi
cmp eax, esi
ja 0x41f136
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edx, dword [esp + 0x14]
test esi, esi
jbe 0x41f182
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov edx, dword [esp + 0x14]
test al, al
je 0x41f182
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x430070
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x41f194
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test edx, edx
je 0x41f2a1
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x41f2a1
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x41f2b0
lea esi, [esp + 0x4c]
push 0
push esi
push ecx
push edx
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41f2b0
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x41f2b0
jmp 0x41f2a1
lea ecx, [esp + 0x10]
push 0x430390
push ecx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x41f204
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx]
mov edi, 0x430070
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x41f22d
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41f285
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41f285
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
push ecx
lea edx, [ecx + esi]
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
mov edi, dword [esp + 0x20]
mov ecx, esi
mov edx, ecx
mov esi, 0x430070
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41f292
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx]
push 0xffffffffffffffff
push eax
push edx
call fcn.004163c0
mov eax, dword [esp + 0x34]
mov cl, byte [eax + 0x4c]
test cl, cl
je 0x41eb87
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
dec ecx
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0x60]
call fcn.004232d0
push 1
lea ecx, [esp + 0x40]
call fcn.0041ff20
mov ecx, dword [0x4303e0]
xor esi, esi
push 0x42ff08
push esi
push esi
call fcn.004158e0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x41f308
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41f2ff
cmp al, 0xff
je 0x41f2ff
dec al
mov byte [ecx], al
jmp 0x41f308
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0xcc], 2
call fcn.0041fed0
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], 0xffffffff
call fcn.004232c0
mov al, 1
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 4