Function at 0x408ad0
Capabilities:
Get disk information
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2104
call fcn.00416c80
mov eax, dword [0x42f278]
xor eax, esp
mov dword [esp + 0x2100], eax
push ebx
push esi
push edi
push 0x410
lea eax, [esp + 0xcdc]
mov ebx, ecx
mov esi, edx
push 0
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0xffffffff
call fcn.00416890
add esp, 0xc
push 0x200
lea ecx, [esp + 0xadc]
push 0
push ecx
call fcn.00416890
add esp, 0xc
push 0x80
lea edx, [esp + 0x54c]
push 0
push edx
call fcn.00416890
xor eax, eax
add esp, 0xc
push 0x40
push 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
mov dword [esp + 0x50c], eax
lea eax, [esp + 0x510]
push eax
call fcn.00416890
add esp, 0xc
push 0x42bcc8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x42bcc8
push 0x436e40
call fcn.00411372
add esp, 0xc
test eax, eax
push 0x5c
jne 0x408c66
push 0x436e44
call fcn.00411350
add esp, 8
test eax, eax
jne 0x408bef
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2100]
xor ecx, esp
call fcn.004104f3
mov esp, ebp
pop ebp
ret
add eax, 2
push 0x5c
push eax
call fcn.00411350
add esp, 8
test eax, eax
jne 0x408c38
movzx ecx, word [eax + 0x436e40]
mov word [esp + eax + 0xcd8], cx
add eax, 2
test cx, cx
jne 0x408c01
lea edi, [esp + 0xcd8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408c22
mov ecx, dword [0x42bd8c]
mov dword [edi], ecx
jmp 0x408c90
sub eax, 0x436e40
sar eax, 1
add eax, 1
mov edi, eax
push edi
lea edx, [esp + 0xcdc]
push 0x436e40
push edx
call fcn.00410502
add esp, 0xc
mov word [esp + edi*2 + 0xcd8], 0
jmp 0x408c90
push 0x436e40
call fcn.00411350
sub eax, 0x436e40
sar eax, 1
add eax, 1
push eax
lea eax, [esp + 0xce4]
push 0x436e40
push eax
call fcn.00410502
add esp, 0x14
push 0x100
lea ecx, [esp + 0xadc]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0xcf4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 4
lea edx, [esp + 0xadc]
push str.NTFS
push edx
call fcn.00411372
add esp, 0xc
test eax, eax
jne 0x408ce0
mov dword [esp + 0x2c], 1
jmp 0x408d04
push 3
lea eax, [esp + 0xadc]
push 0x42c2e0
push eax
call fcn.00411372
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x270f
mov dword [esp + 0x2c], eax
call fcn.00404320
cmp dword [0x43726c], 0
jne 0x408bd8
push 0x208
lea ecx, [esp + 0x14fc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14f8]
call fcn.00401a00
cmp dword [0x43726c], 0
mov dword [esp + 0x10], eax
je 0x408d51
mov dword [esp + 0xc], 0
jmp 0x40981d
mov eax, dword [esp + 0x10]
call fcn.004016f0
cmp dword [0x43726c], 0
movzx edi, ax
je 0x408d73
mov dword [esp + 0xc], 0
jmp 0x40981d
test byte [0x438b28], 4
jne 0x408d9d
test esi, esi
je 0x408d99
mov edx, dword [ebp + 8]
push 0
push edx
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
cmp di, 0xffff
mov dword [esp + 0x14], 0
je 0x40981d
nop
movsx eax, di
cmp eax, 0x102
jg 0x408e12
cmp eax, 0x101
jge case.0x408e34.260
cmp eax, 2
jl case.0x408e34.263
cmp eax, 8
jle case.0x408e34.260
cmp eax, 0x10
jne case.0x408e34.263
mov eax, dword [0x438d48]
cmp eax, 0xc
je 0x408de7
cmp eax, 0xd
jne 0x408def
mov eax, dword [esp + 0x10]
mov byte [eax + 0x4c], 1
mov ecx, dword [esp + 0x10]
call fcn.00402740
cmp dword [0x43726c], 0
je 0x409516
mov dword [esp + 0xc], 0
jmp 0x40980d
cmp eax, 0x200
jg 0x408ed9
je case.0x408e34.260
sub eax, 0x103
cmp eax, 0xd
ja case.0x408e34.263
movzx ecx, byte [eax + 0x409860]
jmp dword [ecx*4 + 0x409854]
mov esi, dword [esp + 0x10]
call fcn.00401840
cmp dword [0x43726c], 0
jne 0x408e05
jmp 0x409516
mov ebx, dword [esp + 0x10]
push 0x4391e0
xor ecx, ecx
call fcn.00401250
add esp, 4
push 0x437724
mov eax, ebx
call fcn.00402000
add esp, 4
mov esi, ebx
call fcn.00401670
xor esi, esi
cmp dword [0x43726c], esi
jne 0x409809
cmp dword [ebx + 0x20], 4
jne 0x408e98
cmp dword [ebx + 0x24], esi
je 0x409512
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 8
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x6f7
jmp 0x4097ff
sub eax, 0x210
je 0x4094c5
sub eax, 0x10
je 0x40943b
sub eax, 0xe0
jne case.0x408e34.263
test byte [0x438b28], 4
jne 0x409355
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + edi*4]
mov esi, dword [esp + 0x28]
add eax, 0x418
call fcn.00405070
mov eax, dword [ebx + edi*4]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea edx, [esp + 0x48]
push edx
add eax, 0x418
push eax
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4092fd
test byte [esp + 0x48], 0x10
jne 0x40961b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x4391c0]
cmp eax, 2
mov dword [esp + 0x18], 0xffffffff
jne 0x409031
mov dword [0x437770], 1
xor edi, edi
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4096ad
test al, 3
je 0x409355
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + esi*4]
push 0x80
add edx, 0x418
push edx
call fcn.00404260
cmp eax, 1
mov dword [esp + 0xc], eax
je 0x409355
push 0x40
push str.SetFileAttributes
push 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
xor edi, edi
add esp, 0xc
mov word [0x4372f0], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebx + esi*4]
mov dword [0x4372f0], eax
lea eax, [ebx + 0x418]
cmp eax, edi
je 0x408ffd
push 0x104
push eax
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], di
call fcn.00410502
add esp, 0xc
mov word [0x437706], di
mov dword [0x4372f4], 0x7c6
jmp 0x40981d
cmp eax, 1
jne 0x409178
mov eax, dword [ebx + edi*4]
lea edx, [eax + 0x418]
mov esi, edx
neg esi
mov eax, edx
lea ebx, [esp + esi + 0x6c8]
movzx ecx, word [eax]
mov word [eax + ebx], cx
add eax, 2
test cx, cx
jne 0x409050
mov eax, edx
lea edx, [esp + esi + 0x8d0]
jmp 0x409070
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x409070
mov dword [esp + 0x20], 0
xor edi, edi
lea esp, [esp]
lea ecx, [esp + 0x6c8]
push 0x2e
push ecx
call fcn.00412984
mov ebx, eax
add esp, 8
cmp ebx, edi
lea eax, [esp + 0x6c8]
jne 0x4090c7
mov edx, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x8d8]
push ecx
call fcn.004112ba
add esp, 0xc
jmp 0x409139
lea edx, [esp + 0x6c8]
mov esi, ebx
sub esi, edx
sar esi, 1
push esi
push eax
lea ecx, [esp + 0x10f0]
push ecx
call fcn.00410502
lea eax, [ebx + 2]
lea edx, [esp + 0x12fc]
add esp, 0xc
mov word [esp + esi*2 + 0x10e8], di
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, di
jne 0x409100
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x12f0]
push edx
push eax
lea ecx, [esp + 0x10f0]
push ecx
lea edx, [esp + 0x8dc]
push str._s_d._s
push edx
call fcn.004112ba
add esp, 0x14
add dword [esp + 0x20], 1
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x8d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x409090
lea edx, [esp + 0x8d0]
push edx
lea eax, [esp + 0x6cc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x409355
cmp dword [0x437770], 1
je 0x408f6f
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + ecx*4]
lea eax, [esp + 0x24]
add edx, 0x418
push eax
mov dword [esp + 0x38], edx
call fcn.0041463e
mov edx, dword [0x437258]
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
xor edi, edi
push edi
call fcn.0041536a
push eax
push esi
lea eax, [esp + 0x518]
push eax
lea ecx, [esp + 0x65c]
push 0x40
push ecx
call fcn.00412ef5
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + eax*4]
lea edx, [esp + 0x664]
mov dword [esp + 0x54], edx
mov ecx, dword [ecx + 4]
add esp, 0x1c
cmp ecx, 0x3e8
jae 0x40923f
mov eax, dword [0x437258]
push 0x10
lea edx, [esp + 0x4ec]
push edx
push 0x443
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + ecx*4]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x4ec]
push ecx
lea edx, [esp + 0x5d0]
push edx
jmp 0x409279
cmp ecx, 0xf4240
jae 0x409261
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str._dKB
lea eax, [esp + 0x5d0]
push eax
jmp 0x409279
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
push edx
push str._dMB
lea ecx, [esp + 0x5d0]
push ecx
call fcn.004112ba
add esp, 0xc
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x5cc]
push 0x40c720
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [0x437258]
push eax
push 0x75
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0x66
jne 0x4092d0
mov esi, dword [esp + 0x10]
call fcn.00401840
cmp dword [0x43726c], edi
jne 0x4096a4
add dword [esp + 0x14], 1
jmp 0x409516
cmp eax, 0x67
je 0x40965e
cmp eax, 0x65
jne 0x4092ed
mov dword [0x437770], 1
jmp 0x408f71
cmp eax, 0xffffef22
je 0x4096a4
jmp 0x408f71
mov eax, dword [ebx + edi*4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x409355
mov edx, dword [ebx + edi*4]
lea ecx, [esp + 0x48]
push ecx
add edx, 8
push edx
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40933b
mov ecx, dword [ebx + edi*4]
add ecx, 8
call fcn.004038d0
cmp eax, 0xffffffff
je 0x408d44
jmp 0x409355
test byte [esp + 0x48], 0x10
je 0x409739
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x18], 0xffffffff
mov ebx, dword [esp + 0x10]
push 0x4391e0
mov ecx, 1
call fcn.00401250
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + esi*4]
add esp, 4
add ecx, 0x418
call fcn.00402470
mov eax, dword [edi + esi*4]
mov esi, ebx
mov dword [eax], 1
call fcn.00401670
xor ebx, ebx
cmp dword [0x43726c], ebx
jne 0x40977c
mov edx, dword [0x437258]
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 [0x437258]
push 0x40
lea eax, [esp + 0x54c]
push eax
push 0x442
push ecx
call esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + esi*4]
push edx
add eax, 0x418
push eax
lea ecx, [esp + 0x550]
lea edx, [esp + 0x1910]
lea eax, [esp + 0x2c]
call fcn.004046d0
add esp, 8
cmp dword [0x43726c], ebx
jne 0x40977c
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + esi*4]
push ecx
add edx, 0x418
push edx
call fcn.00404260
cmp dword [0x43726c], ebx
jne 0x40977c
add esi, 1
mov dword [esp + 0x14], esi
mov ebx, edi
jmp 0x409516
mov ebx, dword [esp + 0x10]
push 0x4391e0
mov ecx, 1
call fcn.00401250
lea eax, [esp + 0x28]
add esp, 4
push eax
mov eax, ebx
call fcn.00402000
add esp, 4
mov esi, ebx
call fcn.00401670
xor esi, esi
cmp dword [0x43726c], esi
jne 0x409809
cmp dword [ebx + 0x20], 4
jne 0x409484
cmp dword [ebx + 0x24], esi
je 0x409512
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 8
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x727
jmp 0x4097ff
mov ebx, dword [esp + 0x10]
push 0x4391e0
mov ecx, 1
call fcn.00401250
lea ecx, [esp + 0x34]
add esp, 4
push ecx
mov eax, ebx
call fcn.00402000
add esp, 4
mov esi, ebx
call fcn.00401670
xor esi, esi
cmp dword [0x43726c], esi
je 0x4094ff
mov dword [esp + 0xc], esi
cmp dword [ebx + 0x20], 4
jne 0x409785
cmp dword [ebx + 0x24], esi
jne 0x409785
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
call fcn.004016f0
cmp dword [0x43726c], 0
movzx edi, ax
jne 0x408e05
test byte [0x438b28], 4
jne 0x4095c9
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40955d
mov edx, dword [ebp + 8]
push 0
push edx
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.00405090
test eax, eax
je 0x4095c9
mov ecx, dword [0x437258]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea eax, [esp + 0x190c]
push eax
push 0x34
push ecx
call esi
mov eax, dword [0x437258]
push 0x40
lea edx, [esp + 0x54c]
push edx
push 0x442
push eax
call esi
push 0x24
lea ecx, [esp + 0x54c]
push ecx
lea edx, [esp + 0x1910]
push edx
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4097c3
mov dword [0x43770c], esi
cmp di, 0xffff
jne 0x408db0
jmp 0x40980d
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 8
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x816
jmp 0x4097ff
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 0xb
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x73c
jmp 0x4097ff
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 1
mov word [0x4372f0], di
mov dword [0x4372f0], edi
mov word [0x4374fe], di
call fcn.00410502
add esp, 0xc
mov word [0x437706], di
mov dword [0x4372f4], 0x7a8
mov dword [esp + 0xc], edi
jmp 0x40981d
push 0x40
push str.GetFileAttributes
push 0x437270
mov dword [0x43726c], 0xcb
call fcn.00410502
add esp, 0xc
mov word [0x4372f0], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4372f0], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [ebx + eax*4]
lea eax, [ebx + 0x418]
cmp eax, edi
je 0x409701
push 0x104
push eax
push 0x4372f8
call fcn.00410502
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov word [0x4374fe], di
call fcn.00410502
add esp, 0xc
mov word [0x437706], di
mov dword [0x4372f4], 0x7cd
mov dword [esp + 0xc], edi
jmp 0x40981d
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 0xc
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x7e7
jmp 0x4097ff
mov dword [esp + 0xc], ebx
jmp 0x40980d
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 8
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x717
jmp 0x4097ff
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437500
mov dword [0x43726c], 1
mov word [0x4372f0], si
mov dword [0x4372f0], esi
mov word [0x4374fe], si
call fcn.00410502
mov dword [0x4372f4], 0x831
add esp, 0xc
mov word [0x437706], si
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x40981d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x409839
mov ecx, dword [esi]
push ecx
call fcn.00411205
add esp, 4
push esi
call fcn.00410f1a
add esp, 4
mov ecx, dword [esp + 0x210c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004104f3
mov esp, ebp
pop ebp
ret