Function at 0x406c10
Capabilities:
Get disk information
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2104
call fcn.0041ec80
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x2100], eax
push ebx
push esi
push edi
push 0x410
xor edi, edi
lea eax, [esp + 0x10ec]
mov ebx, ecx
mov esi, edx
push edi
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], 0xffffffff
call fcn.004130d0
add esp, 0xc
push 0x200
lea ecx, [esp + 0xadc]
push edi
push ecx
call fcn.004130d0
add esp, 0xc
push 0x80
lea edx, [esp + 0x54c]
push edi
push edx
call fcn.004130d0
xor eax, eax
add esp, 0xc
push 0x40
mov dword [esp + 0x4ec], eax
mov dword [esp + 0x4f0], eax
mov dword [esp + 0x4f4], eax
mov dword [esp + 0x4f8], eax
mov dword [esp + 0x4fc], eax
mov dword [esp + 0x500], eax
mov dword [esp + 0x504], eax
mov dword [esp + 0x508], eax
lea eax, [esp + 0x50c]
push edi
push eax
call fcn.004130d0
add esp, 0xc
push 0x5c
push 0x42f9b8
call fcn.00411e23
sub eax, 0x42f9b8
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x10f4]
push 0x42f9b8
push ecx
call fcn.0040d045
add esp, 0x14
push 0x100
lea edx, [esp + 0xadc]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
push edi
push edi
lea edx, [esp + 0x1104]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 4
lea eax, [esp + 0xadc]
push str.NTFS
push eax
call fcn.0040e38d
add esp, 0xc
test eax, eax
jne 0x406d57
mov dword [esp + 0x28], 1
jmp 0x406d7b
push 3
lea ecx, [esp + 0xadc]
push 0x4251a4
push ecx
call fcn.0040e38d
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x270f
mov dword [esp + 0x28], eax
call fcn.00402ff0
cmp dword [0x42fde0], edi
je 0x406d9f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2100]
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret
push 0x208
lea edx, [esp + 0x14fc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14f8]
call fcn.00401670
cmp dword [0x42fde0], edi
mov dword [esp + 0x10], eax
je 0x406dd4
mov dword [esp + 0xc], edi
jmp 0x407881
call fcn.00401380
cmp dword [0x42fde0], edi
movzx eax, ax
mov dword [esp + 0x20], eax
je 0x406df1
mov dword [esp + 0xc], edi
jmp 0x407881
test byte [0x431670], 4
jne 0x406e1a
cmp esi, edi
je 0x406e16
mov ecx, dword [ebp + 8]
push edi
push ecx
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
add dword [ebp + 8], 1
xor edi, edi
cmp word [esp + 0x20], 0xffff
mov dword [esp + 0x14], edi
je 0x407881
lea esp, [esp]
movsx eax, word [esp + 0x20]
cmp eax, 0x102
jg 0x406e7d
cmp eax, 0x101
jge case.0x406e9f.260
cmp eax, 2
jl case.0x406e9f.263
cmp eax, 6
jle case.0x406e9f.260
cmp eax, 0x10
jne case.0x406e9f.263
mov ecx, dword [esp + 0x10]
call fcn.00402050
cmp dword [0x42fde0], 0
je 0x40757c
mov dword [esp + 0xc], 0
jmp 0x407871
cmp eax, 0x200
jg 0x406f3f
je case.0x406e9f.260
sub eax, 0x103
cmp eax, 0xd
ja case.0x406e9f.263
movzx edx, byte [eax + 0x4078c4]
jmp dword [edx*4 + 0x4078b8]
mov esi, dword [esp + 0x10]
call fcn.004014d0
cmp dword [0x42fde0], 0
jne 0x406e70
jmp 0x40757c
mov esi, dword [esp + 0x10]
push 0x431d00
call fcn.00401250
add esp, 4
push 0x430284
mov eax, esi
call fcn.00401b70
add esp, 4
call fcn.00401330
cmp dword [0x42fde0], 0
jne 0x406e70
mov eax, esi
xor esi, esi
cmp dword [eax + 0x20], 4
jne 0x406efe
cmp dword [eax + 0x24], esi
je 0x40757c
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x59f
jmp 0x407863
sub eax, 0x210
je 0x40752d
sub eax, 0x10
je 0x4074a7
sub eax, 0xe0
jne case.0x406e9f.263
test byte [0x431670], 4
jne 0x4073b4
test esi, esi
je 0x406f8d
mov eax, dword [ebx + edi*4]
add eax, 0x418
push eax
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [ebx + edi*4]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x48]
push ecx
add edx, 0x418
push edx
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x407355
test byte [esp + 0x48], 0x10
jne 0x40768c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x431ce0]
cmp eax, 2
mov dword [esp + 0x1c], 0xffffffff
jne 0x406fe4
mov dword [0x4302d8], 1
jmp 0x40729a
cmp eax, 1
jne 0x407126
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edi*4]
lea edx, [eax + 0x418]
mov esi, edx
neg esi
mov eax, edx
lea ebx, [esp + esi + 0x6c8]
jmp 0x407010
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x407010
mov eax, edx
lea edx, [esp + esi + 0x8d0]
jmp 0x407030
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407030
xor edi, edi
lea ecx, [esp + 0x6c8]
push 0x2e
push ecx
call fcn.00410ae5
mov ebx, eax
add esp, 8
test ebx, ebx
lea edx, [esp + 0x6c8]
jne 0x407074
push edi
push edx
lea eax, [esp + 0x8d8]
push eax
call fcn.0040dcca
add esp, 0xc
jmp 0x4070e5
lea ecx, [esp + 0x6c8]
mov esi, ebx
sub esi, ecx
sar esi, 1
push esi
push edx
lea eax, [esp + 0xce0]
push eax
call fcn.0040d045
lea eax, [ebx + 2]
lea edx, [esp + 0xeec]
add esp, 0xc
mov word [esp + esi*2 + 0xcd8], 0
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4070b0
lea ecx, [esp + 0xee0]
push ecx
push edi
lea edx, [esp + 0xce0]
push edx
lea eax, [esp + 0x8dc]
push str._s_d._s
push eax
call fcn.0040dcca
add esp, 0x14
lea ecx, [esp + 0x298]
push ecx
lea edx, [esp + 0x8d4]
push edx
add edi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x407041
lea eax, [esp + 0x8d0]
push eax
lea ecx, [esp + 0x6cc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, dword [esp + 0x14]
jmp 0x4073b4
cmp dword [0x4302d8], 1
je 0x40729a
mov edx, dword [ebx + edi*4]
lea eax, [esp + 0x2c]
add edx, 0x418
push eax
mov dword [esp + 0x38], edx
call fcn.0040faa8
mov edx, dword [0x42fdd0]
add esp, 4
push 0x20
lea ecx, [esp + 0x50c]
push ecx
push 0x446
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_LoadStringW]
push str.japanese
push 0
call fcn.004109f2
push eax
push esi
lea eax, [esp + 0x518]
push eax
lea ecx, [esp + 0x65c]
push 0x40
push ecx
call fcn.004114f1
mov eax, dword [ebx + edi*4]
lea edx, [esp + 0x664]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
add esp, 0x1c
cmp ecx, 0x3e8
jae 0x4071e1
mov edx, dword [0x42fdd0]
push 0x10
lea ecx, [esp + 0x4ec]
push ecx
push 0x443
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebx + edi*4]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x4ec]
push edx
lea eax, [esp + 0x5d0]
push eax
jmp 0x40721b
cmp ecx, 0xf4240
jae 0x407203
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str._dKB
lea ecx, [esp + 0x5d0]
push ecx
jmp 0x40721b
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
push edx
push str._dMB
lea edx, [esp + 0x5d0]
push edx
call fcn.0040dcca
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea eax, [esp + 0x5cc]
push 0x409910
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [0x42fdd0]
push eax
push 0x75
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0x66
jne 0x407275
mov esi, dword [esp + 0x10]
call fcn.004014d0
cmp dword [0x42fde0], 0
jne 0x40738d
add edi, 1
mov dword [esp + 0x14], edi
jmp 0x40757c
cmp eax, 0x67
je 0x4076cf
cmp eax, 0x65
jne 0x40728f
mov dword [0x4302d8], 1
jmp 0x40729a
cmp eax, 0xffffef22
je 0x40738d
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x407720
test al, 3
je 0x4073b4
mov eax, dword [ebx + edi*4]
push 0x80
add eax, 0x418
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
mov dword [esp + 0xc], eax
je 0x4073b4
push 0x40
push str.SetFileAttributes
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
xor esi, esi
add esp, 0xc
mov word [0x42fe68], si
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42fde4], eax
mov eax, dword [ebx + edi*4]
add eax, 0x418
cmp eax, esi
je 0x407321
push 0x104
push eax
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], si
call fcn.0040d045
add esp, 0xc
mov word [0x430276], si
mov dword [0x430278], 0x669
jmp 0x407881
mov ecx, dword [ebx + edi*4]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4073b4
mov eax, dword [ebx + edi*4]
lea edx, [esp + 0x48]
push edx
add eax, 8
push eax
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x40739a
mov ecx, dword [ebx + edi*4]
add ecx, 8
call fcn.00402850
cmp eax, 0xffffffff
jne 0x4073b4
mov dword [esp + 0xc], 0
jmp 0x407881
test byte [esp + 0x48], 0x10
je 0x4077a9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x1c], 0xffffffff
mov esi, dword [esp + 0x10]
push 0x431d00
call fcn.00401250
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + edi*4]
add esp, 4
add ecx, 0x418
mov ebx, esi
call fcn.00401d70
mov edx, dword [esp + 0x18]
mov eax, dword [edx + edi*4]
mov dword [eax], 1
call fcn.00401330
cmp dword [0x42fde0], 0
jne 0x406e70
mov edx, dword [0x42fdd0]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea ecx, [esp + 0x190c]
push ecx
push 0x3a
push edx
call esi
mov ecx, dword [0x42fdd0]
push 0x40
lea eax, [esp + 0x54c]
push eax
push 0x442
push ecx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + ecx*4]
mov edx, dword [esp + 0x28]
push edx
add edi, 0x418
lea ecx, [esp + 0x54c]
lea edx, [esp + 0x190c]
lea eax, [esp + 0x30]
call fcn.004033a0
add esp, 4
cmp dword [0x42fde0], 0
jne 0x406e70
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [eax + ecx*4]
add edx, 0x418
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [0x42fde0], 0
jne 0x406e70
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jmp 0x40757c
mov esi, dword [esp + 0x10]
push 0x431d00
call fcn.00401250
lea eax, [esp + 0x30]
add esp, 4
push eax
mov eax, esi
call fcn.00401b70
add esp, 4
call fcn.00401330
cmp dword [0x42fde0], 0
jne 0x406e70
mov eax, esi
xor esi, esi
cmp dword [eax + 0x20], 4
jne 0x4074ec
cmp dword [eax + 0x24], esi
je 0x40757c
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x5cd
jmp 0x407863
mov esi, dword [esp + 0x10]
push 0x431d00
call fcn.00401250
lea ecx, [esp + 0x34]
add esp, 4
push ecx
mov eax, esi
call fcn.00401b70
add esp, 4
call fcn.00401330
cmp dword [0x42fde0], 0
je 0x407563
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax + 0x20], 4
jne 0x4077e9
cmp dword [eax + 0x24], esi
jne 0x4077e9
mov eax, dword [esp + 0x10]
call fcn.00401380
cmp dword [0x42fde0], 0
movzx edx, ax
mov dword [esp + 0x20], edx
jne 0x406e70
test byte [0x431670], 4
jne 0x407634
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4075c7
mov eax, dword [ebp + 8]
push 0
push eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
add dword [ebp + 8], 1
call fcn.00403d30
test eax, eax
je 0x407634
mov edx, dword [0x42fdd0]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea ecx, [esp + 0x190c]
push ecx
push 0x34
push edx
call esi
mov ecx, dword [0x42fdd0]
push 0x40
lea eax, [esp + 0x54c]
push eax
push 0x442
push ecx
call esi
push 0x24
lea edx, [esp + 0x54c]
push edx
lea eax, [esp + 0x1910]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x407827
mov dword [0x430280], esi
cmp word [esp + 0x20], 0xffff
je 0x407871
mov esi, dword [esp + 0x24]
jmp 0x406e30
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x6b6
jmp 0x407863
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xb
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x5e2
jmp 0x407863
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 1
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
add esp, 0xc
mov word [0x430276], si
mov dword [0x430278], 0x64e
mov dword [esp + 0xc], esi
jmp 0x407881
push 0x40
push str.GetFileAttributes
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
xor esi, esi
add esp, 0xc
mov word [0x42fe68], si
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42fde4], eax
mov eax, dword [ebx + edi*4]
add eax, 0x418
cmp eax, esi
je 0x407771
push 0x104
push eax
push 0x42fe68
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], si
call fcn.0040d045
add esp, 0xc
mov word [0x430276], si
mov dword [0x430278], 0x670
mov dword [esp + 0xc], esi
jmp 0x407881
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xc
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x68a
jmp 0x407863
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x5bd
jmp 0x407863
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 1
mov word [0x42fe68], si
mov dword [0x42fde4], esi
mov word [0x43006e], si
call fcn.0040d045
mov dword [0x430278], 0x6d1
add esp, 0xc
mov word [0x430276], si
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x407881
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40789d
mov ecx, dword [esi]
push ecx
call fcn.0040d9d5
add esp, 4
push esi
call fcn.0040da51
add esp, 4
mov ecx, dword [esp + 0x210c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d036
mov esp, ebp
pop ebp
ret