Function at 0x426fc0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452da6
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x46c098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], 0
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x42700d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x44], 0xffffffff
cmp dword [edi + 0x4c], 0
jbe 0x42737a
mov ecx, edi
call fcn.00426d60
cmp eax, dword [edi + 0x54]
jb 0x42737a
mov dword [ebp - 0xf8], 0x463eac
push 0
lea eax, [ebp - 0xf4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xac], 0x48
call fcn.004162e0
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xfc], eax
lea eax, [ebp - 0xf4]
mov ecx, eax
mov dword [ebp - 0x60], eax
call fcn.00416220
mov dword [ebp - 0xf4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 4
movzx eax, word [edi + 0x50]
cdq
push edx
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 4
push eax
call fcn.0044f2c4
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea esi, [edi + 0x28]
lea eax, [ebp - 0xf8]
push 0x464540
push esi
push eax
call fcn.00407670
add esp, 8
push eax
call fcn.0041ae00
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42710e
xor ecx, ecx
jmp 0x427115
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
mov eax, dword [ebp - 0x5c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
mov eax, dword [eax + 4]
mov byte [eax + ebx + 0x40], 0x30
push dword [edi + 0x4c]
call fcn.00426a90
push 0
mov ecx, eax
call fcn.00426d90
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00412630
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043ab5e
mov eax, dword [edi + 0x4c]
add esp, 4
mov dword [ebp - 0x5c], eax
cmp eax, 1
jbe 0x427304
nop word [eax + eax]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.00414960
push dword [ebp - 0xb8]
lea eax, [ebp - 0x58]
push 0
push eax
lea ecx, [ebp - 0xf4]
call fcn.00416180
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x4271d1
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403540
movzx eax, word [edi + 0x50]
cdq
push edx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0044f2c4
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0xf8]
push 0x2e
push esi
push eax
call fcn.00407670
add esp, 8
push eax
call fcn.004073b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42720e
xor ecx, ecx
jmp 0x427215
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [ebx + 0xc]
mov eax, dword [ebx]
push dword [ebx + 8]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov ebx, dword [ebp - 0x5c]
mov ecx, esi
dec ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [eax + 4]
push ebx
mov byte [eax + esi + 0x40], 0x30
call fcn.00426a90
push 0
mov ecx, eax
call fcn.00426d90
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00412630
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x427267
mov eax, dword [eax]
push ecx
push eax
call fcn.0043abab
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 0x10
jb 0x427286
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403540
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00412630
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4272ce
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4272b3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403540
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402880
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4272e3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403540
mov dword [ebp - 0x2c], 0xf
lea esi, [edi + 0x28]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp ebx, 1
ja 0x427180
lea esi, [edi + 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x427317
mov esi, dword [esi]
push eax
push esi
call fcn.0043abab
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 0x10
jb 0x427336
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403540
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00412650
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 8
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.0041f14e
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x3c], 0x10
lea eax, [edi + 0x28]
jb 0x427385
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, edi
cmp eax, 0xffffffff
je 0x42739a
mov eax, dword [edi]
call dword [eax + 8]
jmp 0x4273a2
call fcn.0042a5f0
mov dword [edi + 0x44], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042aad6
mov esp, ebp
pop ebp
ret