Function at 0x459e40
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46a89c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a0
mov eax, dword [0x4823c0]
push ebx
push ebp
push edi
mov ebp, ecx
mov ebx, 1
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4ac], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_void_]
mov byte [esp + 0xa8], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xa9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp + 0x1018]
mov dword [esp + 0x4b4], 0
stosb byte es:[edi], al
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
mov eax, dword [ebp + 0x1014]
test eax, eax
mov byte [ebp + 1], 0
je 0x45a162
lea eax, [ebp + 0x810]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459ec8
lea edi, [esp + 0xa8]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459ee0
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0x410]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x459f01
lea edi, [esp + 0xac]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459f14
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xac]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x459f32
mov ax, word [0x478fec]
mov word [edi], ax
lea eax, [ebp + 0x813]
mov edx, eax
jmp 0x459f50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459f50
lea edi, [esp + 0xac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459f61
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0xc13]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x459f81
lea edi, [esp + 0xac]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x459f94
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x4c0]
mov edi, dword [sym.imp.MSVCR71.dll_rename]
lea ecx, [esp + 0xac]
push ecx
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x459fe5
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.MSVCR71.dll_remove]
lea eax, [esp + 0xb0]
push eax
push esi
call edi
add esp, 0xc
push 0x1b6
push 2
push esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::open_char_const___int__int_]
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x45a016
mov eax, dword [ebp + 0x10d0]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
cmp dword [ebp + 0xc], ebx
jle 0x45a053
mov edi, 0x20
mov esi, dword [ebp + 0x10d0]
lea eax, [ebp + 0x1104]
push eax
lea eax, [esp + 0x1c]
push eax
add esi, edi
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
mov ecx, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
mov eax, dword [ebp + 0xc]
add esp, 0x10
inc ebx
add edi, 0x20
cmp ebx, eax
jl 0x45a020
mov eax, dword [ebp + 8]
test eax, eax
jle 0x45a06d
lea edx, [esp + 0x18]
push 0x475e9c
push edx
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
cmp byte [ebp], 0
je 0x45a07f
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004577f0
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x45a157
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x45a100
lea ecx, [ecx]
mov ecx, dword [ebp + 0x10b4]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx + 4]
mov esi, dword [eax + ebx + 4]
add eax, ebx
mov edi, 0x475e9c
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x45a0d4
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
lea eax, [ebp + 0x1104]
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
add esp, 8
inc eax
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x45a0a0
mov eax, dword [ebp + 8]
dec eax
cmp esi, eax
jne 0x45a118
mov ecx, dword [ebp + 0x10b4]
mov edx, dword [ecx + esi*4]
mov al, byte [edx + 0x20]
test al, al
je 0x45a12b
lea eax, [esp + 0x18]
push 0x475e9c
push eax
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
mov ecx, dword [ebp + 0x10b4]
mov edx, dword [ecx + esi*4]
mov al, byte [edx + 0x20]
test al, al
je 0x45a147
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004577f0
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x45a090
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
pop esi
xor ecx, ecx
mov cl, byte [ebp + 0x1104]
push ecx
mov ecx, ebp
call fcn.00458b70
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.MSVCR71.dll_remove]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov ecx, dword [esp + 0x4ac]
pop edi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4a0]
pop ebx
call fcn.00465927
add esp, 0x4ac
ret 4