Function at 0x1008a530
Capabilities:
Copy file
Get common file path
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x10185f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x101cd7b4]
xor eax, esp
mov dword [esp + 0x538], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x550]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
xor ebp, ebp
cmp ecx, ebp
mov byte [esi + 0x1e18], 1
je 0x1008a582
call fcn.10071190
lea eax, [esi + 0x1d28]
lea edi, [eax + 4]
push edi
mov dword [esp + 0x3c], 0x10199614
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x2730]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push ebp
mov dword [esp + 0x55c], ebp
call edx
mov ecx, dword [esi + 0x2730]
call fcn.10134e31
cmp eax, 0xf
jne 0x1008a74a
mov ecx, dword [esi + 0x272c]
call fcn.10034cc0
mov ecx, eax
call fcn.100f409a
cmp dword [esi + 0x52], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x1e28], 0x16
mov dword [esi + 0x1e2c], 0x46
je 0x1008a73e
lea edi, [esi + 0x1dd8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x1df0]
push edi
call ebp
test bl, bl
jne 0x1008a73e
lea edi, [esi + 0x1dd8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x1df0]
push edi
call ebp
test bl, bl
jne 0x1008a64f
lea edi, [esi + 0x1dd8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [esi + 0x1df0], 1
call ebp
mov al, byte [esi + 0x2249]
test al, al
jne 0x1008a73e
push 0x38
lea ecx, [esp + 0xb4]
push 0
push ecx
call fcn.101596b0
lea edi, [esi + 0x2660]
add esp, 0xc
mov ecx, edi
mov dword [esp + 0xb0], 0x16
mov dword [esp + 0xb4], 0x46
call fcn.10032960
mov ecx, esi
mov ebp, eax
mov ebx, edx
call fcn.10087a10
cmp edx, ebx
jl 0x1008a6c8
jg 0x1008a6a9
cmp eax, ebp
jbe 0x1008a6c8
mov ecx, edi
call fcn.10032960
mov ecx, esi
mov edi, eax
mov ebx, edx
call fcn.10087a10
sub eax, edi
sbb edx, ebx
mov dword [esp + 0xbc], edx
jmp 0x1008a6d1
xor eax, eax
mov dword [esp + 0xbc], eax
lea ecx, [esi + 0x2748]
mov dword [esp + 0xb8], eax
call fcn.10032960
lea ecx, [esi + 0x2778]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
call fcn.10032960
mov ecx, dword [esi + 0x52]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esi + 0x2426]
mov dword [esp + 0xd0], edx
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
push 0x59
call edx
mov ecx, dword [esi + 0x52]
mov edx, dword [esi + 0x2426]
mov eax, dword [ecx]
mov eax, dword [eax]
push 0x16
push edx
push 0x53
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
push ecx
call ebp
jmp 0x1008b2ba
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call fcn.10089770
mov ecx, dword [esi + 0x2730]
push eax
push ebp
mov byte [esp + 0x560], 1
call fcn.10137875
cmp dword [esp + 0xac], 0x10
mov bl, al
mov byte [esp + 0x558], 0
jb 0x1008a792
mov eax, dword [esp + 0x98]
push eax
call fcn.10159534
add esp, 4
test bl, bl
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebp
mov byte [esp + 0x98], 0
jne 0x1008a934
mov ecx, dword [esi + 0x272c]
call fcn.10034cc0
mov ecx, eax
call fcn.100f409a
cmp dword [esi + 0x52], 0
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x1e28], 0x12
mov dword [esi + 0x1e2c], 0x18
je 0x1008a928
lea edi, [esi + 0x1dd8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x1df0]
push edi
call ebp
test bl, bl
jne 0x1008a928
lea edi, [esi + 0x1dd8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x1df0]
push edi
call ebp
test bl, bl
jne 0x1008a839
lea edi, [esi + 0x1dd8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [esi + 0x1df0], 1
call ebp
mov cl, byte [esi + 0x2249]
test cl, cl
jne 0x1008a928
push 0x38
lea edx, [esp + 0x124]
push 0
push edx
call fcn.101596b0
lea edi, [esi + 0x2660]
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x120], 0x12
mov dword [esp + 0x124], 0x18
call fcn.10032960
mov ecx, esi
mov ebp, eax
mov ebx, edx
call fcn.10087a10
cmp edx, ebx
jl 0x1008a8b2
jg 0x1008a893
cmp eax, ebp
jbe 0x1008a8b2
mov ecx, edi
call fcn.10032960
mov ecx, esi
mov edi, eax
mov ebx, edx
call fcn.10087a10
sub eax, edi
sbb edx, ebx
mov dword [esp + 0x12c], edx
jmp 0x1008a8bb
xor eax, eax
mov dword [esp + 0x12c], eax
lea ecx, [esi + 0x2748]
mov dword [esp + 0x128], eax
call fcn.10032960
lea ecx, [esi + 0x2778]
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], edx
call fcn.10032960
mov ecx, dword [esi + 0x52]
mov dword [esp + 0x13c], edx
lea edx, [esp + 0x120]
push edx
mov edx, dword [esi + 0x2426]
mov dword [esp + 0x13c], eax
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
push 0x59
call eax
mov ecx, dword [esi + 0x52]
mov eax, dword [esi + 0x2426]
mov edx, dword [ecx]
mov edx, dword [edx]
push 0x12
push eax
push 0x53
call edx
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
push eax
call ebp
jmp 0x1008b2ba
push edi
mov dword [esp + 0x55c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
mov dword [esp + 0x38], 0x10199600
call fcn.1008a300
cmp byte [esi + 0x25dc], 0
jne 0x1008aa4e
lea ecx, [esp + 0x240]
push ecx
mov ecx, esi
mov byte [esi + 0x25dc], 1
call fcn.10089770
push 1
push 0xffffffffffffffff
mov ebx, 2
push 0x1019a068
lea ecx, [esp + 0x24c]
mov dword [esp + 0x564], ebx
call fcn.10029e70
cmp eax, 0xffffffff
je 0x1008a9e3
push 0xffffffffffffffff
add eax, 1
push eax
lea edx, [esp + 0x1d0]
push edx
lea ecx, [esp + 0x24c]
call fcn.1002a800
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x24c]
mov byte [esp + 0x564], 3
call fcn.10005470
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x558], bl
call fcn.10089160
cmp dword [esp + 0x254], ebp
je 0x1008aa0f
cmp dword [esp + 0x258], 0x10
mov eax, dword [esp + 0x244]
jae 0x1008aa04
lea eax, [esp + 0x244]
push ebp
push eax
push 0x4b
mov ecx, esi
call fcn.100881a0
cmp dword [esp + 0x258], 0x10
mov dword [esp + 0x558], 0xffffffff
jb 0x1008aa34
mov eax, dword [esp + 0x244]
push eax
call fcn.10159534
add esp, 4
mov dword [esp + 0x258], 0xf
mov dword [esp + 0x254], ebp
mov byte [esp + 0x244], 0
lea ecx, [esp + 0x2cc]
call fcn.10002290
mov edx, dword [esi + 0x2503]
lea ecx, [esp + 0x2cc]
push ecx
push edx
call fcn.1005f420
mov ecx, eax
call fcn.1005b6d0
cmp byte [esp + 0x2e8], 1
jne 0x1008b11e
mov edx, dword [esi + 0x1e24]
mov ecx, dword [esp + 0x2e9]
xor eax, eax
cmp edx, eax
jg 0x1008b11e
jl 0x1008aaaa
mov eax, dword [esi + 0x1e20]
cmp eax, ecx
ja 0x1008b11e
push 0x104
lea ecx, [esp + 0x44c]
push ebp
push ecx
call fcn.101596b0
mov eax, 0xf
mov dword [esp + 0x2b8], eax
mov dword [esp + 0x2b4], ebp
mov byte [esp + 0x2a4], 0
mov dword [esp + 0x564], 4
mov dword [esp + 0x29c], eax
mov dword [esp + 0x298], ebp
mov byte [esp + 0x288], 0
mov bl, 5
push ebp
mov byte [esp + 0x568], bl
call fcn.1015972a
add esp, 0x10
push 1
push 0x23
lea edx, [esp + 0x450]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1008b0fb
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebp
je 0x1008ab99
mov al, byte [esp + 0x448]
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
mov byte [esp + 0x20], al
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x29], 0x3a
mov byte [esp + 0x2a], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1008ab99
cmp dword [esp + 0x2c], ebp
jl 0x1008ab99
jg 0x1008ab7d
cmp dword [esp + 0x28], ebp
jbe 0x1008ab99
cmp dword [esp + 0x34], ebp
jl 0x1008b0fb
jg 0x1008aba4
cmp dword [esp + 0x30], 0x1f400000
jb 0x1008b0fb
jmp 0x1008aba4
cmp byte [esp + 0x27], 0
jne 0x1008b0fb
lea ecx, [esp + 0x448]
push ecx
lea ecx, [esp + 0x1b0]
call fcn.10006620
push str.TEMPqd_tmp
push eax
lea edx, [esp + 0x160]
push edx
mov byte [esp + 0x564], 6
call fcn.1002a900
add esp, 0xc
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x564], 7
call fcn.10005470
lea ecx, [esp + 0x158]
call fcn.10089160
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x558], bl
call fcn.10089160
lea eax, [esp + 0x294]
push eax
call fcn.100ea69b
add esp, 4
test al, al
jne 0x1008ac39
lea ecx, [esp + 0x294]
push ecx
call fcn.100ea797
add esp, 4
test al, al
je 0x1008b0fb
push str..
lea edx, [esp + 0x298]
push edx
lea eax, [esp + 0x2b8]
push eax
call fcn.1002a900
add esp, 0xc
cmp dword [esp + 0x2c8], 0x10
mov eax, dword [esp + 0x2b4]
mov byte [esp + 0x558], 8
jae 0x1008ac76
lea eax, [esp + 0x2b4]
lea ecx, [esp + 0x328]
push ecx
push eax
call fcn.1015bcb5
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x1008afac
mov edi, dword [esp + 0x338]
mov ebx, dword [esp + 0x33c]
lea edx, [esp + 0x328]
push edx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call fcn.1015bdef
add esp, 8
test eax, eax
jne 0x1008acef
lea ecx, [ecx]
mov eax, dword [esp + 0x338]
mov ecx, dword [esp + 0x33c]
lea edx, [esp + 0x328]
push edx
add edi, eax
push ebp
adc ebx, ecx
call fcn.1015bdef
add esp, 8
test eax, eax
je 0x1008acc0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov ecx, dword [esi + 0x1e20]
mov eax, dword [esi + 0x1e24]
add ecx, edi
adc eax, ebx
mov ebx, dword [esp + 0x2ed]
xor edx, edx
cmp eax, edx
jl 0x1008afac
jg 0x1008ad20
cmp ecx, ebx
jbe 0x1008afac
lea ebx, [ebx]
mov dword [esp + 0x274], 0xf
mov dword [esp + 0x270], 0
mov byte [esp + 0x260], 0
cmp dword [esp + 0x2c8], 0x10
mov eax, dword [esp + 0x2b4]
mov byte [esp + 0x558], 9
jae 0x1008ad5e
lea eax, [esp + 0x2b4]
lea ecx, [esp + 0x328]
push ecx
push eax
call fcn.1015bcb5
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x1008af98
mov ebp, dword [esp + 0x338]
mov ebx, dword [esp + 0x33c]
lea edx, [esp + 0x340]
push edx
lea ecx, [esp + 0x204]
call fcn.10006620
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x564], 0xa
call fcn.10005470
lea ecx, [esp + 0x200]
mov byte [esp + 0x558], 9
call fcn.10089160
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x328]
push eax
push ecx
call fcn.1015bdef
add esp, 8
test eax, eax
jne 0x1008af19
jmp 0x1008adf0
mov ecx, dword [esp + 0x33c]
cmp ecx, ebx
jl 0x1008aefc
mov eax, dword [esp + 0x338]
jg 0x1008ae10
cmp eax, ebp
jbe 0x1008aefc
lea edx, [esp + 0x340]
mov ebx, ecx
push edx
lea ecx, [esp + 0x7c]
mov ebp, eax
call fcn.10006620
mov edi, eax
push 0x1019a068
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x564], 0xb
call fcn.1002a900
push edi
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x570], 0xc
call fcn.1002a9c0
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x564], 0xd
call fcn.10005470
cmp dword [esp + 0x58], 0x10
jb 0x1008ae8a
mov eax, dword [esp + 0x44]
push eax
call fcn.10159534
add esp, 4
xor edi, edi
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x1008aeb1
mov ecx, dword [esp + 0x60]
push ecx
call fcn.10159534
add esp, 4
cmp dword [esp + 0x90], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
mov byte [esp + 0x558], 9
jb 0x1008aee1
mov edx, dword [esp + 0x7c]
push edx
call fcn.10159534
add esp, 4
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x90], 0xf
mov byte [esp + 0x7c], 0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x328]
push eax
push ecx
call fcn.1015bdef
add esp, 8
test eax, eax
je 0x1008adf0
mov edx, dword [esp + 0x14]
push edx
call fcn.1015bc31
mov eax, dword [esp + 0x264]
add esp, 4
cmp dword [esp + 0x274], 0x10
jae 0x1008af3e
lea eax, [esp + 0x260]
push eax
call fcn.1002fca0
add esp, 4
test al, al
mov byte [esp + 0x558], 8
lea ecx, [esp + 0x25c]
je 0x1008afa7
sub edi, ebp
sbb dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
call fcn.10089160
mov ecx, dword [esi + 0x1e20]
mov eax, dword [esi + 0x1e24]
mov ebx, dword [esp + 0x2ed]
add ecx, edi
adc eax, dword [esp + 0x20]
xor edx, edx
cmp eax, edx
jg 0x1008ad20
jl 0x1008afac
cmp ecx, ebx
ja 0x1008ad20
jmp 0x1008afac
mov byte [esp + 0x558], 8
lea ecx, [esp + 0x25c]
call fcn.10089160
lea ebx, [esi + 0x2446]
lea eax, [esp + 0x1e4]
push ebx
push eax
call fcn.100ea061
mov edi, eax
push 0x1019a068
lea ecx, [esp + 0x2a0]
push ecx
lea edx, [esp + 0x1a0]
push edx
mov byte [esp + 0x56c], 0xe
call fcn.1002a900
push edi
push eax
lea eax, [esp + 0x190]
push eax
mov byte [esp + 0x578], 0xf
call fcn.1002a9c0
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x284]
mov byte [esp + 0x564], 0x10
call fcn.10005470
lea ecx, [esp + 0x174]
call fcn.10089160
lea ecx, [esp + 0x190]
call fcn.10089160
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x558], 8
call fcn.10089160
mov ecx, dword [esp + 0x27c]
mov eax, 0x10
cmp dword [esp + 0x290], eax
jae 0x1008b05f
lea ecx, [esp + 0x27c]
cmp dword [ebx + 0x18], eax
jb 0x1008b069
mov eax, dword [ebx + 4]
jmp 0x1008b06c
lea eax, [ebx + 4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x278]
push ecx
push ebx
call fcn.1005f420
mov ecx, eax
call fcn.1005d6a0
mov eax, dword [esi + 0x1e84]
test eax, eax
je 0x1008b0ed
mov edi, dword [eax]
mov edx, dword [esi + 0x255b]
push 1
push edx
lea eax, [esi + 0x242a]
push eax
lea ecx, [esp + 0x228]
push ecx
mov ecx, esi
add edi, 0x9c
lea ebx, [esi + 8]
call fcn.10086fe0
push eax
mov ecx, esi
call fcn.10088410
push edx
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x290]
push edx
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x248]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [esi + 0x1e84]
push eax
mov eax, dword [edi]
call eax
lea ecx, [esp + 0x2b0]
call fcn.10089160
xor ebp, ebp
lea ecx, [esp + 0x278]
call fcn.10089160
lea ecx, [esp + 0x294]
mov dword [esp + 0x558], 0xffffffff
call fcn.10089160
mov ecx, dword [esi + 0x272c]
call fcn.10034cc0
mov ecx, eax
call fcn.100f409a
mov dword [esi + 0x1e28], ebp
mov dword [esi + 0x1e2c], ebp
mov byte [esi + 0x1e18], 1
mov cl, byte [esi + 0x2720]
test cl, cl
je 0x1008b173
cmp dword [esi + 0x52], ebp
je 0x1008b2ba
mov dl, byte [esi + 0x2248]
test dl, dl
jne 0x1008b173
mov ecx, dword [esi + 0x52]
mov edx, dword [esi + 0x2426]
mov eax, dword [ecx]
mov eax, dword [eax]
push ebp
push edx
push 0x56
call eax
cmp dword [esi + 0x52], ebp
je 0x1008b2ba
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x1dd8]
push edi
call ebp
mov bl, byte [esi + 0x1df0]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x1008b2ba
lea edi, [esi + 0x1dd8]
push edi
call ebp
mov bl, byte [esi + 0x1df0]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x1008b1d1
lea edi, [esi + 0x1dd8]
push edi
call ebp
push edi
mov byte [esi + 0x1df0], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [esi + 0x2249]
test cl, cl
jne 0x1008b2ba
push 0x38
xor edi, edi
lea edx, [esp + 0xec]
push edi
push edx
call fcn.101596b0
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], edi
add esp, 0xc
mov ecx, esi
lea edi, [esi + 0x2660]
call fcn.10087a10
mov ecx, edi
mov ebp, eax
mov ebx, edx
call fcn.10032960
cmp ebx, edx
jl 0x1008b24a
jg 0x1008b224
cmp ebp, eax
jbe 0x1008b24a
mov ecx, esi
call fcn.10087a10
mov ecx, edi
mov ebx, eax
mov ebp, edx
call fcn.10032960
sub ebx, eax
sbb ebp, edx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebp
jmp 0x1008b25a
xor eax, eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
lea ecx, [esi + 0x2748]
call fcn.10032960
lea ecx, [esi + 0x2778]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], edx
call fcn.10032960
mov ecx, dword [esi + 0x52]
mov dword [esp + 0x104], edx
lea edx, [esp + 0xe8]
push edx
mov edx, dword [esi + 0x2426]
mov dword [esp + 0x104], eax
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
push 0x59
call eax
mov ecx, dword [esi + 0x52]
mov eax, dword [esi + 0x2426]
mov edx, dword [ecx]
mov edx, dword [edx]
push 0
push eax
push 0x53
call edx
mov ecx, dword [esp + 0x550]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.10159cce
add esp, 0x548
ret