Function at 0x1003f930
Capabilities:
Delete file
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10121b96
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x1019742c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.100e0740
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x438]
call fcn.10019430
mov dword [ebp - 4], 0
mov dword [ebp - 0x4a0], 0
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.100e0740
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x468]
call fcn.1001fdb0
mov byte [ebp - 4], 1
push 2
push 0
lea ecx, [ebp - 0x480]
push ecx
lea ecx, [ebp - 0x468]
call fcn.10019270
mov dword [ebp - 0x4a8], eax
mov edx, dword [ebp - 0x4a8]
push edx
lea ecx, [ebp - 0x468]
call fcn.10019340
lea ecx, [ebp - 0x480]
call fcn.10023ac0
mov eax, dword [ebp - 0x4a0]
movzx ecx, word [ebp + eax*2 - 0x21a]
test ecx, ecx
jne 0x1003fa5f
mov edx, dword [ebp - 0x4a0]
movzx eax, word [ebp + edx*2 - 0x218]
test eax, eax
je 0x1003fbdc
push 0x1014ee18
lea ecx, [ebp - 0x438]
call fcn.10019320
mov ecx, dword [ebp - 0x4a0]
movzx edx, word [ebp + ecx*2 - 0x218]
push edx
lea ecx, [ebp - 0x438]
call fcn.1003fc60
push 0x1014ee1c
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x498]
push ecx
call fcn.1003fc80
add esp, 0xc
mov dword [ebp - 0x4ac], eax
mov edx, dword [ebp - 0x4ac]
push edx
lea ecx, [ebp - 0x438]
call fcn.10019340
lea ecx, [ebp - 0x498]
call fcn.10023ac0
mov eax, dword [ebp - 0x4a0]
add eax, 4
mov dword [ebp - 0x4a0], eax
lea ecx, [ebp - 0x438]
call fcn.10023620
push eax
push 0x1014ee20
lea ecx, [ebp - 0x450]
push ecx
call fcn.1003f7b0
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.10023620
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x450]
call fcn.10023620
push eax
push 0x1014ee38
push 0x1014ee3c
push 0x1014ee48
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x1003fb36
mov byte [ebp - 0x499], 1
jmp 0x1003fb3d
mov byte [ebp - 0x499], 0
mov dl, byte [ebp - 0x499]
mov byte [ebp - 0x49a], dl
lea ecx, [ebp - 0x450]
call fcn.10023620
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x438]
call fcn.10023620
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1003fbcc
movzx eax, byte [ebp - 0x49a]
test eax, eax
je 0x1003fbcc
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001e840
mov edx, dword [ebp - 0x4a4]
or edx, 1
mov dword [ebp - 0x4a4], edx
lea ecx, [ebp - 0x450]
call fcn.10023ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.10023ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.10023ac0
mov eax, dword [ebp + 8]
jmp 0x1003fc1e
lea ecx, [ebp - 0x450]
call fcn.10023ac0
jmp 0x1003fa37
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp + 8]
call fcn.1001e840
mov ecx, dword [ebp - 0x4a4]
or ecx, 1
mov dword [ebp - 0x4a4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.10023ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.10023ac0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e3069
mov esp, ebp
pop ebp
ret