Function at 0x42f950
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4886a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x100]
push edi
sub esp, 0xc
mov dword [ebp - 0x2c], ebx
lea eax, [ebx + 4]
push eax
call fcn.0042ff50
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa4], 0
je 0x42fc44
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ebx + 0x1c]
mov byte [ebp - 4], 1
push esi
push dword [esi + 4]
push dword [esi]
call fcn.0042c1c0
mov eax, dword [esi]
lea edx, [ebp - 0x28]
add esp, 0xc
mov dword [esi + 4], eax
lea ecx, [ebp - 0x100]
call fcn.00431250
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x42fbc5
nop
lea esi, [ebp - 0x102]
xor ecx, ecx
nop dword [eax + eax]
mov eax, 0xcccccccd
add esi, 0xfffffffe
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x42fa00
lea eax, [ebp - 0x102]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], edx
mov edi, 7
mov dword [ebp - 0x30], edi
cmp esi, eax
je 0x42fa4c
sub eax, esi
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push esi
call fcn.00408820
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
cmp edi, 8
cmovae ecx, edx
cmp esi, 8
cmovae eax, ebx
movzx ecx, word [ecx]
mov dword [ebp - 0x10], ecx
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
cmp edi, 8
jb 0x42fab0
lea edi, [edi*2 + 2]
mov eax, edx
cmp edi, 0x1000
jb 0x42fa9a
mov edx, dword [edx - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fcce
push edi
push edx
call fcn.00460334
mov esi, dword [ebp - 0x14]
add esp, 8
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
cmp ax, cx
jne 0x42fba4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov edx, 1
cmp eax, edx
cmovb edx, eax
cmp esi, 8
cmovae ecx, ebx
sub eax, edx
mov dword [ebp - 0x18], eax
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00461b60
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
add esp, 0xc
cmp eax, 4
jb 0x42fcd3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..tmp
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.0040d2d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 5
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x30]
mov esi, eax
cmp edx, 8
jb 0x42fb7b
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fb71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fcce
push edx
push ecx
call fcn.00460334
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040ab20
mov ebx, dword [ebp - 0x2c]
mov ecx, ebx
test esi, esi
je 0x42fb9b
push 1
call fcn.0042eea0
jmp 0x42fba7
push 2
call fcn.0042eea0
jmp 0x42fba7
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x100]
call fcn.00431250
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x42f9f0
lea ecx, [ebp - 0xf0]
call fcn.00430ef0
test eax, eax
jne 0x42fbff
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004052b0
mov ecx, ebx
call fcn.0042f000
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42fc44
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fcce
push edx
push ecx
call fcn.00460334
add esp, 8
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xf0]
call fcn.00430a60
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x104], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.0044b2db
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00465850
call fcn.00404880
int3