Function at 0x454c10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5a21
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x80]
test eax, eax
jne 0x454c42
xor eax, eax
jmp 0x455316
mov esi, dword [esp + 0xec]
push 0
lea ecx, [esp + 0x1c]
mov al, byte [esi]
mov byte [esp + 0x1c], 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 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 + 0x18]
push edx
push 0
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, 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 [esp + 0xf0]
mov dword [esp + 0xe4], 0
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, 0x4fd63c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4fd63c
lea ecx, [esp + 0x20]
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__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x454cc4
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 0x4fde9c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x28], ebx
jne 0x454cfe
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe8], 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_]
mov eax, 0xfffffffe
jmp 0x455316
mov eax, 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 [esp + 0xf0]
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [ebp + 0x50]
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [ebp + 0x60]
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push fcn.004011f0
push 0x471f70
push 6
lea edx, [esp + 0x58]
push 0x10
push edx
call fcn.004ce784
push 0
push 0x10
push ebx
mov byte [esp + 0xf0], 1
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea esi, [ebp + 0x1c]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push esi
push eax
mov dword [esp + 0x54], 0x40800000
mov dword [esp + 0x58], 0x40800000
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x40400000
call fcn.00471f90
lea ecx, [esp + 0x3c]
push ebp
lea edx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xbff00000
call fcn.00405980
fld dword [esi + 4]
fmul dword [eax + 4]
fld dword [eax]
fmul dword [esi]
add esp, 0xc
mov ecx, ebp
faddp st(1)
fld dword [esi + 8]
fmul dword [eax + 8]
lea esi, [ebp + 0xc]
lea eax, [esp + 0x2c]
faddp st(1)
push esi
push eax
fstp dword [esp + 0x70]
call fcn.00405230
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0xec], 2
call fcn.00471f90
lea edx, [esp + 0x2c]
push esi
push edx
mov ecx, ebp
mov byte [esp + 0xec], 1
mov dword [esp + 0x80], 0
call fcn.004051f0
mov byte [esp + 0xe4], 3
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
call fcn.00471f90
lea ecx, [esp + 0x2c]
push ebp
push ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0xec], 1
mov dword [esp + 0x90], 0
call fcn.00471f90
movsx eax, word [ebp + 0x84]
movsx ecx, word [ebp + 0x86]
mov dword [esp + 0x10], eax
imul eax, ecx
mov dword [esp + 0x14], eax
mov al, byte [ebp + 0x74]
fild dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x98], 0
test al, al
fstp dword [esp + 0x9c]
fild dword [esp + 0x10]
mov dword [esp + 0xa8], 0x40c00000
fstp dword [esp + 0xa0]
fild dword [esp + 0x3c]
fstp dword [esp + 0xa4]
jne 0x454eb4
mov dword [esp + 0xa8], 0x40800000
push ebx
push 6
lea edx, [esp + 0x54]
push 0x10
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
movsx esi, word [ebp + 0x86]
movsx eax, word [ebp + 0x84]
mov edi, dword [ebp + 0x80]
imul esi, eax
mov al, byte [ebp + 0x74]
add esp, 0x10
test al, al
je 0x455080
lea ecx, [esi + esi*2]
lea edx, [ecx*8 + 4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0xe4], 4
je 0x454f2a
push fcn.004011f0
push 0x471fe0
lea ebx, [eax + 4]
push esi
push 0x18
push ebx
mov dword [eax], esi
call fcn.004ce784
mov dword [esp + 0x10], ebx
jmp 0x454f32
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xe4], 1
test esi, esi
jle 0x454fe2
mov dword [esp + 0x14], esi
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xac]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0xec], 5
call fcn.00472060
test edi, edi
je 0x454f83
lea eax, [edi + 0x10]
jmp 0x454f85
xor eax, eax
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xc4]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0xec], 6
call fcn.00472000
mov al, byte [edi + 0xc]
mov byte [esp + 0xe4], 1
cmp al, 5
jbe 0x454fc6
mov dword [ebx + 0xc], 0x3f800000
jmp 0x454fcd
mov dword [ebx + 0xc], 0xbf800000
mov eax, dword [esp + 0x14]
add edi, 0x18
add ebx, 0x18
dec eax
mov dword [esp + 0x14], eax
jne 0x454f4a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push esi
push 0x18
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x45501d
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004011f0
push edx
push 0x18
push eax
call fcn.004ce690
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 0x8c]
add esp, 4
test eax, eax
je 0x455049
mov edx, dword [ebp + 0x90]
sub edx, eax
test edx, 0xfffffff0
jne 0x455186
push fcn.004011f0
push 6
lea eax, [esp + 0x54]
push 0x10
push eax
mov byte [esp + 0xf4], 0
call fcn.004ce690
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe8], 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 0x455311
mov eax, esi
shl eax, 4
add eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xe4], 7
je 0x4550c7
push fcn.004011f0
mov dword [eax], esi
push 0x471f70
add eax, 4
push esi
push 0x10
push eax
mov dword [esp + 0x50], eax
call fcn.004ce784
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
jmp 0x4550cf
mov dword [esp + 0x10], 0
test esi, esi
mov byte [esp + 0xe4], 1
jle 0x455146
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea ebx, [edx + 0xc]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [ebx - 0xc]
mov byte [esp + 0xec], 8
call fcn.00471f90
mov al, byte [edi + 0xc]
mov byte [esp + 0xe4], 1
cmp al, 5
jbe 0x45512b
mov dword [ebx], 0x3f800000
jmp 0x455131
mov dword [ebx], 0xbf800000
mov eax, dword [esp + 0x14]
add edi, 0x10
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x4550e6
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ebx
push esi
push 0x10
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x455021
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004011f0
push ecx
push 0x10
push eax
call fcn.004ce690
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x455021
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 edi, 0x4fde94
xor eax, eax
mov esi, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x4551f0
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x4551f0
cmp esi, eax
jb 0x4551b0
lea esi, [eax - 1]
mov edx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.MSVCRT.dll_memchr]
add esi, edx
push edi
movsx eax, byte [esi]
push eax
push 0x4fde94
call ebx
add esp, 0xc
test eax, eax
jne 0x4551ea
cmp esi, dword [esp + 0x1c]
je 0x4551f0
movsx ecx, byte [esi - 1]
dec esi
push edi
push ecx
push 0x4fde94
call ebx
add esp, 0xc
test eax, eax
je 0x4551cf
sub esi, dword [esp + 0x1c]
jmp 0x4551f8
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, dword [edx]
inc esi
lea eax, [esp + 0x2c]
push esi
push 0
push eax
lea ecx, [esp + 0x24]
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__::substr_unsigned_int__unsigned_int_]
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 byte [esp + 0xe4], 9
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x30]
mov byte [esp + 0xe4], 1
test eax, eax
je 0x455256
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x45524d
cmp al, 0xff
je 0x45524d
dec al
mov byte [ecx], al
jmp 0x455256
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, 0x4fde90
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x45527e
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x4552c6
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebx, [edx + esi]
push ebx
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 0x4552c6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, 0x4fde90
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 + 0x1c]
mov dword [esp + 0x20], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004562e0
push fcn.004011f0
push 6
lea edx, [esp + 0x54]
push 0x10
push edx
mov byte [esp + 0xf4], 0
call fcn.004ce690
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x455311
mov al, byte [ecx - 1]
test al, al
je 0x455307
cmp al, 0xff
je 0x455307
dec al
mov byte [ecx - 1], al
jmp 0x455311
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 8