Function at 0x401270
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x442eaf
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x450ae0]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x450ae0]
xor eax, esp
push eax
lea eax, [esp + 0x1b4]
mov dword fs:[0], eax
mov dword [esp + 0x1bc], 1
mov eax, dword [esp + 0x1c8]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402b00
mov bl, 2
push 0x10
mov byte [esp + 0x1c0], bl
call fcn.0040b0b3
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x1bc], 3
je 0x4012fe
push 0
mov ecx, esi
call fcn.0040a6e0
mov dword [esi], vtable.utf8_conversion.0
jmp 0x401300
xor esi, esi
mov byte [esp + 0x1bc], bl
call fcn.0042b67e
mov ebp, eax
mov dword [esp + 0x28], ebp
call fcn.0042b50b
push 0
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0042ee39
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x401332
add eax, 1
mov dword [edi + 4], eax
lea ecx, [esp + 0x1c]
call fcn.0042ee5a
lea edx, [esp + 0x28]
mov ebx, esi
push edx
lea esi, [esp + 0x24]
mov byte [esp + 0x1c0], 4
call fcn.00406840
mov byte [esp + 0x1bc], 5
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + 4]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + edx + 0x30]
mov ecx, eax
call fcn.004029c0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4013b9
push 0
lea ecx, [esp + 0x18]
call fcn.0042ee39
mov eax, dword [edi + 4]
test eax, eax
jbe 0x401397
cmp eax, 0xffffffff
jae 0x401397
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.0042ee5a
test esi, esi
je 0x4013b9
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov byte [esp + 0x1bc], 4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x401408
push 0
lea ecx, [esp + 0x18]
call fcn.0042ee39
mov eax, dword [edi + 4]
test eax, eax
jbe 0x4013e6
cmp eax, 0xffffffff
jae 0x4013e6
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.0042ee5a
test esi, esi
je 0x401408
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
test ebp, ebp
mov byte [esp + 0x1bc], 2
je 0x401453
push 0
lea ecx, [esp + 0x18]
call fcn.0042ee39
mov eax, dword [ebp + 4]
test eax, eax
jbe 0x401431
cmp eax, 0xffffffff
jae 0x401431
add eax, 0xffffffff
mov dword [ebp + 4], eax
mov esi, dword [ebp + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, ebp
call fcn.0042ee5a
test esi, esi
je 0x401453
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp dword [esp + 0x80], 0
jne 0x4014d1
lea ecx, [esp + 0x84]
mov byte [esp + 0x1bc], 1
call fcn.00402bc0
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.0042ebc3
mov byte [esp + 0x1c0], 0
mov eax, dword [esp + 0x1c8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1bc], 0xffffffff
mov eax, dword [esp + 0x1c8]
add eax, 0xfffffff0
jmp 0x401c3f
push str..tmp
lea ecx, [esp + 0x1cc]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402840
add esp, 0xc
mov byte [esp + 0x1bc], 6
mov eax, dword [eax]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00403820
mov bl, 8
mov byte [esp + 0x1bc], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40152c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x10
call fcn.0040b0b3
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x1bc], 9
je 0x401559
push 0
mov ecx, esi
call fcn.0040a6e0
mov dword [esi], vtable.utf8_conversion.0
jmp 0x40155b
xor esi, esi
mov byte [esp + 0x1bc], bl
call fcn.0042b67e
mov ebp, eax
mov dword [esp + 0x24], ebp
call fcn.0042b50b
push 0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0042ee39
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40158d
add eax, 1
mov dword [edi + 4], eax
lea ecx, [esp + 0x14]
call fcn.0042ee5a
lea ecx, [esp + 0x24]
mov ebx, esi
push ecx
lea esi, [esp + 0x1c]
mov byte [esp + 0x1c0], 0xa
call fcn.00406840
mov byte [esp + 0x1bc], 0xb
mov ecx, dword [esp + 0xd4]
lea edx, [esp + 0x28]
push edx
mov edx, dword [ecx + 4]
lea edx, [esp + edx + 0xd8]
mov ecx, eax
call fcn.004029c0
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
je 0x40161b
push ebx
lea ecx, [esp + 0x20]
call fcn.0042ee39
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x4015f9
cmp eax, 0xffffffff
jae 0x4015f9
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x1c]
and esi, edi
call fcn.0042ee5a
cmp esi, ebx
je 0x40161b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov byte [esp + 0x1bc], 0xa
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x401669
push ebx
lea ecx, [esp + 0x20]
call fcn.0042ee39
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x401647
cmp eax, 0xffffffff
jae 0x401647
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x1c]
and esi, edi
call fcn.0042ee5a
cmp esi, ebx
je 0x401669
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp ebp, ebx
mov byte [esp + 0x1bc], 8
je 0x4016b3
push ebx
lea ecx, [esp + 0x18]
call fcn.0042ee39
mov eax, dword [ebp + 4]
cmp eax, ebx
jbe 0x401691
cmp eax, 0xffffffff
jae 0x401691
add eax, 0xffffffff
mov dword [ebp + 4], eax
mov esi, dword [ebp + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, ebp
call fcn.0042ee5a
cmp esi, ebx
je 0x4016b3
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp dword [esp + 0x80], ebx
jne 0x401763
lea ecx, [esp + 0x128]
mov byte [esp + 0x1bc], 2
call fcn.004038e0
lea ecx, [esp + 0x128]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0x12c], esi
call fcn.0042ebc3
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x1bc], 1
call fcn.00402bc0
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x88], esi
call fcn.0042ebc3
mov byte [esp + 0x1c0], bl
mov eax, dword [esp + 0x1c8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1bc], 0xffffffff
mov eax, dword [esp + 0x1c8]
add eax, 0xfffffff0
jmp 0x401c3f
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
add eax, 4
test byte [esp + ecx + 0x34], 1
jne 0x401af7
jmp 0x401780
mov esi, 7
mov edi, 8
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1a8], ebx
mov word [esp + 0x198], bx
mov byte [esp + 0x1bc], 0xc
mov ecx, dword [eax]
push 0xa
lea ecx, [esp + ecx + 0x30]
call fcn.004064a0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x194]
push eax
push edx
call fcn.00407030
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x3c]
add esp, 8
test al, 1
jne 0x4017e1
cmp eax, ebx
jne 0x401a26
push 0x10
push str._arrFileContent_
lea ecx, [esp + 0x164]
mov dword [esp + 0x17c], esi
mov dword [esp + 0x178], ebx
mov word [esp + 0x168], bx
call fcn.00406200
mov byte [esp + 0x1bc], 0xe
cmp dword [esp + 0x174], edi
mov eax, dword [esp + 0x160]
jae 0x401829
lea eax, [esp + 0x160]
mov ebx, dword [esp + 0x170]
push eax
lea eax, [esp + 0x198]
call fcn.00405440
cmp eax, 0xffffffff
je 0x401947
push eax
xor ecx, ecx
lea esi, [esp + 0x17c]
lea edx, [esp + 0x198]
call fcn.004039e0
mov edx, esi
mov bl, 0xf
push edx
lea edi, [esp + 0xbc]
mov byte [esp + 0x1c0], bl
call fcn.00406920
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x1c8], 0x10
call fcn.00406110
mov ebp, 8
mov byte [esp + 0x1bc], bl
cmp dword [esp + 0xd0], ebp
jb 0x4018b5
mov eax, dword [esp + 0xbc]
push eax
call fcn.0040b0de
add esp, 4
push str.__arrFileContent_
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402840
add esp, 0xc
mov byte [esp + 0x1bc], 0x11
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4018e0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x19c]
call fcn.00405340
mov byte [esp + 0x1bc], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1bc], 0xe
cmp dword [esp + 0x190], ebp
jb 0x40194c
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.0040b0de
add esp, 4
jmp 0x40194c
mov ebp, 8
lea edx, [esp + 0x194]
push edx
lea eax, [esp + 0xd8]
push eax
call fcn.004069e0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040a780
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
lea eax, [edx + esi]
xor ebx, ebx
xor edi, edi
test byte [eax + 8], 6
jne 0x401997
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401997
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4019b6
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x4019af
or eax, 4
push ebx
push eax
call fcn.00409330
cmp dword [esp + 0x174], ebp
jb 0x4019cf
mov edx, dword [esp + 0x160]
push edx
call fcn.0040b0de
add esp, 4
mov byte [esp + 0x1bc], 8
cmp dword [esp + 0x1ac], ebp
mov dword [esp + 0x174], 7
mov dword [esp + 0x170], ebx
mov word [esp + 0x160], bx
jb 0x401a0a
mov eax, dword [esp + 0x198]
push eax
call fcn.0040b0de
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
add eax, 4
xor ebx, ebx
test byte [esp + ecx + 0x34], 1
je 0x401780
jmp 0x401af7
push str.Input_stream_failed._r_n
lea ecx, [esp + 0x17c]
call fcn.00403970
mov byte [esp + 0x1bc], 0xd
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x34], 4
je 0x401a60
push 0x13
push str.__A_bad_bit_read._r_n
lea esi, [esp + 0x180]
call fcn.00405340
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x34]
test al, 1
je 0x401a82
push 0x14
push str.__An_EOF_bit_read._r_n
lea esi, [esp + 0x180]
call fcn.00405340
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x34], 2
je 0x401aa3
push 0x14
push str.__A_fail_bit_read._r_n
lea esi, [esp + 0x180]
call fcn.00405340
cmp dword [esp + 0x190], edi
jb 0x401abc
mov edx, dword [esp + 0x17c]
push edx
call fcn.0040b0de
add esp, 4
mov byte [esp + 0x1bc], 8
cmp dword [esp + 0x1ac], edi
mov dword [esp + 0x190], 7
mov dword [esp + 0x18c], ebx
mov word [esp + 0x17c], bx
jb 0x401af7
mov eax, dword [esp + 0x198]
push eax
call fcn.0040b0de
add esp, 4
lea esi, [esp + 0x34]
call fcn.00404ef0
test eax, eax
jne 0x401b25
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x34]
lea ecx, [esp + ecx + 0x2c]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x401b1e
or eax, 4
push ebx
push eax
call fcn.00409330
lea esi, [esp + 0xd8]
call fcn.00404ef0
test eax, eax
jne 0x401b5f
mov edx, dword [esp + 0xd4]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0xdc]
lea ecx, [esp + ecx + 0xd4]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x401b58
or eax, 4
push ebx
push eax
call fcn.00409330
push str..tmp
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00402840
mov edi, dword [esp + 0x1d4]
mov eax, dword [eax]
add esp, 0xc
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401bac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x1bc], 2
call fcn.004038e0
lea ecx, [esp + 0x128]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0x12c], esi
call fcn.0042ebc3
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x1bc], 1
call fcn.00402bc0
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x88], esi
call fcn.0042ebc3
mov byte [esp + 0x1c0], bl
mov eax, dword [esp + 0x1c8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1bc], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.00414894
add esp, 0x1ac
ret