Function at 0x4075c0
Capabilities:
Get disk information
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2104
call fcn.00415280
mov eax, dword [0x42d278]
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 + 0x24], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], 0xffffffff
call fcn.00414e60
add esp, 0xc
push 0x200
lea ecx, [esp + 0xadc]
push 0
push ecx
call fcn.00414e60
add esp, 0xc
push 0x80
lea edx, [esp + 0x54c]
push 0
push edx
call fcn.00414e60
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.00414e60
add esp, 0xc
push 0x429cc0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x429cc0
push 0x434ec0
call fcn.0040f9dd
add esp, 0xc
test eax, eax
push 0x5c
jne 0x407756
push 0x434ec4
call fcn.0040f9bb
add esp, 8
test eax, eax
jne 0x4076df
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2100]
xor ecx, esp
call fcn.0040eac3
mov esp, ebp
pop ebp
ret
add eax, 2
push 0x5c
push eax
call fcn.0040f9bb
add esp, 8
test eax, eax
jne 0x407728
movzx ecx, word [eax + 0x434ec0]
mov word [esp + eax + 0xcd8], cx
add eax, 2
test cx, cx
jne 0x4076f1
lea edi, [esp + 0xcd8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407712
mov ecx, dword [0x429d84]
mov dword [edi], ecx
jmp 0x407780
sub eax, 0x434ec0
sar eax, 1
add eax, 1
mov edi, eax
push edi
lea edx, [esp + 0xcdc]
push 0x434ec0
push edx
call fcn.0040ead2
add esp, 0xc
mov word [esp + edi*2 + 0xcd8], 0
jmp 0x407780
push 0x434ec0
call fcn.0040f9bb
sub eax, 0x434ec0
sar eax, 1
add eax, 1
push eax
lea eax, [esp + 0xce4]
push 0x434ec0
push eax
call fcn.0040ead2
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.0040f9dd
add esp, 0xc
test eax, eax
jne 0x4077d0
mov dword [esp + 0x2c], 1
jmp 0x4077f4
push 3
lea eax, [esp + 0xadc]
push 0x42a1a4
push eax
call fcn.0040f9dd
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x270f
mov dword [esp + 0x2c], eax
call fcn.004035a0
cmp dword [0x4352e8], 0
jne 0x4076c8
push 0x208
lea ecx, [esp + 0x14fc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14f8]
call fcn.00401800
cmp dword [0x4352e8], 0
mov dword [esp + 0x10], eax
je 0x407841
mov dword [esp + 0xc], 0
jmp 0x4082ea
mov eax, dword [esp + 0x10]
call fcn.004014f0
cmp dword [0x4352e8], 0
movzx edi, ax
je 0x407863
mov dword [esp + 0xc], 0
jmp 0x4082ea
test byte [0x436ba8], 4
jne 0x40788d
test esi, esi
je 0x407889
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 0x4082ea
nop
movsx eax, di
cmp eax, 0x102
jg 0x4078eb
cmp eax, 0x101
jge case.0x40790d.260
cmp eax, 2
jl case.0x40790d.263
cmp eax, 6
jle case.0x40790d.260
cmp eax, 0x10
jne case.0x40790d.263
mov ecx, dword [esp + 0x10]
call fcn.00402290
cmp dword [0x4352e8], 0
je 0x407fe3
mov dword [esp + 0xc], 0
jmp 0x4082da
cmp eax, 0x200
jg 0x4079af
je case.0x40790d.260
sub eax, 0x103
cmp eax, 0xd
ja case.0x40790d.263
movzx eax, byte [eax + 0x40832c]
jmp dword [eax*4 + 0x408320]
mov esi, dword [esp + 0x10]
call fcn.00401640
cmp dword [0x4352e8], 0
jne 0x4078de
jmp 0x407fe3
mov ebx, dword [esp + 0x10]
push 0
push 0x437240
call fcn.00401250
push 0x43579c
mov eax, ebx
call fcn.00401dc0
add esp, 0xc
mov esi, ebx
call fcn.00401470
xor esi, esi
cmp dword [0x4352e8], esi
jne 0x4082d6
cmp dword [ebx + 0x20], 4
jne 0x40796e
cmp dword [ebx + 0x24], esi
je 0x407fdf
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x678
jmp 0x4082cc
sub eax, 0x210
je 0x407f98
sub eax, 0x10
je 0x407f14
sub eax, 0xe0
jne case.0x40790d.263
test byte [0x436ba8], 4
jne 0x407e31
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + edi*4]
mov esi, dword [esp + 0x28]
add eax, 0x418
call fcn.004042f0
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 0x407dd9
test byte [esp + 0x48], 0x10
jne 0x4080e8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x437220]
cmp eax, 2
mov dword [esp + 0x1c], 0xffffffff
jne 0x407b08
mov dword [0x4357e8], 1
xor edi, edi
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x40817a
test al, 3
je 0x407e31
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + esi*4]
push 0x80
add ecx, 0x418
push ecx
call fcn.004034e0
cmp eax, 1
mov dword [esp + 0xc], eax
je 0x407e31
push 0x40
push str.SetFileAttributes
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
xor edi, edi
add esp, 0xc
mov word [0x435370], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebx + esi*4]
mov dword [0x4352ec], eax
lea eax, [ebx + 0x418]
cmp eax, edi
je 0x407ad4
push 0x104
push eax
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435576], di
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], di
mov dword [0x435780], 0x745
jmp 0x4082ea
cmp eax, 1
jne 0x407c58
mov ebx, dword [ebx + edi*4]
lea edx, [ebx + 0x418]
mov esi, edx
neg esi
mov eax, edx
lea ebx, [esp + esi + 0x6c8]
jmp 0x407b30
movzx ecx, word [eax]
mov word [eax + ebx], cx
add eax, 2
test cx, cx
jne 0x407b30
mov eax, edx
lea edx, [esp + esi + 0x8d0]
jmp 0x407b50
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x407b50
mov dword [esp + 0x20], 0
xor edi, edi
lea esp, [esp]
lea eax, [esp + 0x6c8]
push 0x2e
push eax
call fcn.00410f54
mov ebx, eax
add esp, 8
cmp ebx, edi
lea edx, [esp + 0x6c8]
jne 0x407ba7
mov ecx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x8d8]
push eax
call fcn.0040f88a
add esp, 0xc
jmp 0x407c19
lea ecx, [esp + 0x6c8]
mov esi, ebx
sub esi, ecx
sar esi, 1
push esi
push edx
lea eax, [esp + 0x10f0]
push eax
call fcn.0040ead2
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 0x407be0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x12f0]
push ecx
push edx
lea eax, [esp + 0x10f0]
push eax
lea ecx, [esp + 0x8dc]
push str._s_d._s
push ecx
call fcn.0040f88a
add esp, 0x14
add dword [esp + 0x20], 1
lea edx, [esp + 0x298]
push edx
lea eax, [esp + 0x8d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x407b70
lea ecx, [esp + 0x8d0]
push ecx
lea edx, [esp + 0x6cc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x407e31
cmp dword [0x4357e8], 1
je 0x407a46
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + eax*4]
lea edx, [esp + 0x24]
add ecx, 0x418
push edx
mov dword [esp + 0x38], ecx
call fcn.00412684
mov ecx, dword [0x4352d8]
add esp, 4
push 0x20
mov esi, eax
lea eax, [esp + 0x50c]
push eax
push 0x446
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
xor edi, edi
push edi
push edi
call fcn.00413558
push eax
push esi
lea edx, [esp + 0x518]
push edx
lea eax, [esp + 0x65c]
push 0x40
push eax
call fcn.0041381b
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + edx*4]
lea ecx, [esp + 0x664]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 4]
add esp, 0x1c
cmp ecx, 0x3e8
jae 0x407d1c
mov edx, dword [0x4352d8]
push 0x10
lea ecx, [esp + 0x4ec]
push ecx
push 0x443
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + eax*4]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x4ec]
push eax
lea ecx, [esp + 0x5d0]
push ecx
jmp 0x407d56
cmp ecx, 0xf4240
jae 0x407d3e
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str._dKB
lea edx, [esp + 0x5d0]
push edx
jmp 0x407d56
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
push edx
push str._dMB
lea eax, [esp + 0x5d0]
push eax
call fcn.0040f88a
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x5cc]
push 0x40ad50
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [0x4352d8]
push 0x75
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0x66
jne 0x407dac
mov esi, dword [esp + 0x10]
call fcn.00401640
cmp dword [0x4352e8], edi
jne 0x408171
add dword [esp + 0x14], 1
jmp 0x407fe3
cmp eax, 0x67
je 0x40812b
cmp eax, 0x65
jne 0x407dc9
mov dword [0x4357e8], 1
jmp 0x407a48
cmp eax, 0xffffef22
je 0x408171
jmp 0x407a48
mov edx, dword [ebx + edi*4]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407e31
mov ecx, dword [ebx + edi*4]
lea eax, [esp + 0x48]
push eax
add ecx, 8
push ecx
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x407e17
mov ecx, dword [ebx + edi*4]
add ecx, 8
call fcn.00402b50
cmp eax, 0xffffffff
je 0x407834
jmp 0x407e31
test byte [esp + 0x48], 0x10
je 0x408206
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x1c], 0xffffffff
mov ebx, dword [esp + 0x10]
push 1
push 0x437240
call fcn.00401250
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + esi*4]
add esp, 8
add ecx, 0x418
call fcn.00401fc0
mov edx, dword [edi + esi*4]
mov esi, ebx
mov dword [edx], 1
call fcn.00401470
xor ebx, ebx
cmp dword [0x4352e8], ebx
jne 0x408249
mov ecx, dword [0x4352d8]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea eax, [esp + 0x190c]
push eax
push 0x3a
push ecx
call esi
mov eax, dword [0x4352d8]
push 0x40
lea edx, [esp + 0x54c]
push edx
push 0x442
push eax
call esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + esi*4]
push ecx
add edx, 0x418
push edx
lea ecx, [esp + 0x550]
lea edx, [esp + 0x1910]
lea eax, [esp + 0x2c]
call fcn.00403950
add esp, 8
cmp dword [0x4352e8], ebx
jne 0x408249
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + esi*4]
push eax
add ecx, 0x418
push ecx
call fcn.004034e0
cmp dword [0x4352e8], ebx
jne 0x408249
add esi, 1
mov dword [esp + 0x14], esi
mov ebx, edi
jmp 0x407fe3
mov ebx, dword [esp + 0x10]
push 1
push 0x437240
call fcn.00401250
lea edx, [esp + 0x2c]
push edx
mov eax, ebx
call fcn.00401dc0
add esp, 0xc
mov esi, ebx
call fcn.00401470
xor esi, esi
cmp dword [0x4352e8], esi
jne 0x4082d6
cmp dword [ebx + 0x20], 4
jne 0x407f57
cmp dword [ebx + 0x24], esi
je 0x407fdf
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x6a6
jmp 0x4082cc
mov ebx, dword [esp + 0x10]
push 1
push 0x437240
call fcn.00401250
lea eax, [esp + 0x38]
push eax
mov eax, ebx
call fcn.00401dc0
add esp, 0xc
mov esi, ebx
call fcn.00401470
xor esi, esi
cmp dword [0x4352e8], esi
je 0x407fcc
mov dword [esp + 0xc], esi
cmp dword [ebx + 0x20], 4
jne 0x408252
cmp dword [ebx + 0x24], esi
jne 0x408252
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
call fcn.004014f0
cmp dword [0x4352e8], 0
movzx edi, ax
jne 0x4078de
test byte [0x436ba8], 4
jne 0x408096
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40802a
mov ecx, dword [ebp + 8]
push 0
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
call fcn.00404310
test eax, eax
je 0x408096
mov eax, dword [0x4352d8]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea edx, [esp + 0x190c]
push edx
push 0x34
push eax
call esi
mov edx, dword [0x4352d8]
push 0x40
lea ecx, [esp + 0x54c]
push ecx
push 0x442
push edx
call esi
push 0x24
lea eax, [esp + 0x54c]
push eax
lea ecx, [esp + 0x1910]
push ecx
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x408290
mov dword [0x435788], esi
cmp di, 0xffff
jne 0x4078a0
jmp 0x4082da
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x795
jmp 0x4082cc
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 0xb
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x6bb
jmp 0x4082cc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 1
mov word [0x435370], di
mov dword [0x4352ec], edi
mov word [0x435576], di
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], di
mov dword [0x435780], 0x727
mov dword [esp + 0xc], edi
jmp 0x4082ea
push 0x40
push str.GetFileAttributes
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
add esp, 0xc
mov word [0x435370], di
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov ebx, dword [ebx + edx*4]
mov dword [0x4352ec], eax
lea eax, [ebx + 0x418]
cmp eax, edi
je 0x4081ce
push 0x104
push eax
push 0x435370
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435576], di
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], di
mov dword [0x435780], 0x74c
mov dword [esp + 0xc], edi
jmp 0x4082ea
push 0x104
xor esi, esi
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 0xc
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x766
jmp 0x4082cc
mov dword [esp + 0xc], ebx
jmp 0x4082da
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x696
jmp 0x4082cc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 1
mov word [0x435370], si
mov dword [0x4352ec], esi
mov word [0x435576], si
call fcn.0040ead2
mov dword [0x435780], 0x7b0
add esp, 0xc
mov word [0x43577e], si
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4082ea
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x408306
mov eax, dword [esi]
push eax
call fcn.0040f238
add esp, 4
push esi
call fcn.0040f5d8
add esp, 4
mov ecx, dword [esp + 0x210c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040eac3
mov esp, ebp
pop ebp
ret