Function at 0x40f580
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e188
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [0x43da30]
test eax, eax
jne 0x40fffc
push str.Deleting_temporary_files
lea ecx, [esp + 0x34]
call fcn.00425828
or ebp, 0xffffffff
mov ecx, esi
push ebp
push eax
mov dword [esp + 0x88], 0
call fcn.00402c40
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], ebp
call fcn.004257ba
push str.TEMP
call fcn.004123e9
add esp, 4
lea ecx, [esp + 0x14]
push eax
call fcn.00425828
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], 1
mov eax, dword [eax - 8]
cmp eax, 5
jle 0x40f6a7
lea ecx, [esp + 0x30]
push 5
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042055f
mov edx, dword [eax]
push str._temp
push edx
call fcn.00412150
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.004257ba
test bl, bl
je 0x40f6a7
push 0x43a2d8
lea ecx, [esp + 0x28]
call fcn.00425828
lea eax, [esp + 0x14]
push 0x43a2d0
lea ecx, [esp + 0x34]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x8c], bl
call fcn.00425a03
lea edx, [esp + 0x24]
push 1
push edx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 3
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.004257ba
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x24]
jmp 0x40f777
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40f77c
push str..tmp
lea ecx, [esp + 0x28]
call fcn.00425828
lea ecx, [esp + 0x14]
push 0x43a2d0
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x8c], 4
call fcn.00425a03
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 5
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 4
call fcn.004257ba
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 1
call fcn.004257ba
push 0x43c18c
lea ecx, [esp + 0x28]
call fcn.00425828
lea edx, [esp + 0x14]
push 0x43a2d0
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x8c], 6
call fcn.00425a03
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 7
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 6
call fcn.004257ba
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x24]
call fcn.004257ba
mov eax, dword [0x43da30]
test eax, eax
jne 0x40fb82
push 0x43c188
call fcn.004123e9
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.00425828
mov edx, dword [esp + 0x18]
mov byte [esp + 0x80], 8
mov eax, dword [edx - 8]
cmp eax, 5
jle 0x40f84d
lea eax, [esp + 0x30]
push 5
push eax
lea ecx, [esp + 0x20]
call fcn.0042055f
mov ecx, dword [eax]
push str._temp
push ecx
call fcn.00412150
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.004257ba
test bl, bl
je 0x40f84d
push 0x43a2d8
lea ecx, [esp + 0x28]
call fcn.00425828
lea edx, [esp + 0x18]
push 0x43a2d0
lea eax, [esp + 0x34]
mov bl, 9
push edx
push eax
mov byte [esp + 0x8c], bl
call fcn.00425a03
lea ecx, [esp + 0x24]
push 1
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0xa
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.004257ba
mov byte [esp + 0x80], 8
lea ecx, [esp + 0x24]
jmp 0x40f91d
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x40f922
push str..tmp
lea ecx, [esp + 0x28]
call fcn.00425828
lea eax, [esp + 0x18]
push 0x43a2d0
lea ecx, [esp + 0x34]
mov bl, 0xb
push eax
push ecx
mov byte [esp + 0x8c], bl
call fcn.00425a03
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0xc
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.004257ba
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
push 0x43c18c
lea ecx, [esp + 0x28]
call fcn.00425828
lea eax, [esp + 0x18]
push 0x43a2d0
lea ecx, [esp + 0x34]
mov bl, 0xd
push eax
push ecx
mov byte [esp + 0x8c], bl
call fcn.00425a03
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0xe
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.004257ba
mov byte [esp + 0x80], 8
lea ecx, [esp + 0x24]
call fcn.004257ba
mov eax, dword [0x43da30]
test eax, eax
jne 0x40fb71
push str..tmp
lea ecx, [esp + 0x20]
call fcn.00425828
mov bl, 0xf
push str.C:DOS_
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call fcn.00425828
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x8c], 0x10
call fcn.00401ef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call fcn.004257ba
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 8
call fcn.004257ba
mov edx, dword [esi + 0xcc]
lea edi, [esi + 0xcc]
mov eax, dword [edx - 8]
test eax, eax
je 0x40fb68
mov eax, dword [0x43da30]
test eax, eax
jne 0x40fb71
push str.ff.tmp
lea ecx, [esp + 0x28]
call fcn.00425828
lea eax, [esp + 0x24]
push 0
push eax
push edi
mov ecx, esi
mov byte [esp + 0x8c], 0x11
call fcn.00401ef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
push str..tmp
lea ecx, [esp + 0x28]
call fcn.00425828
lea ecx, [esp + 0x24]
push 0
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x8c], 0x12
call fcn.00401ef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
push 0x43c18c
lea ecx, [esp + 0x28]
call fcn.00425828
lea edx, [esp + 0x24]
push 0
push edx
push edi
mov ecx, esi
mov byte [esp + 0x8c], 0x13
call fcn.00401ef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
push str.IE4_Error_Log.txt
lea ecx, [esp + 0x28]
call fcn.00425828
lea eax, [esp + 0x24]
push 0
push eax
push edi
mov ecx, esi
mov byte [esp + 0x8c], 0x14
call fcn.00401ef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
mov eax, dword [0x43da30]
test eax, eax
jne 0x40fb71
push 0x43a2d8
lea ecx, [esp + 0x28]
call fcn.00425828
push str.tmp_
lea ecx, [esp + 0x34]
mov bl, 0x15
push edi
push ecx
mov byte [esp + 0x8c], bl
call fcn.00425a03
lea edx, [esp + 0x24]
push 1
push edx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0x16
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.004257ba
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
push 0x43a2d8
lea ecx, [esp + 0x28]
call fcn.00425828
push str.temp_
lea eax, [esp + 0x34]
mov bl, 0x17
push edi
push eax
mov byte [esp + 0x8c], bl
call fcn.00425a03
lea ecx, [esp + 0x24]
push 1
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0x18
call fcn.00401ef0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], bl
call fcn.004257ba
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
mov eax, dword [0x43da30]
test eax, eax
jne 0x40fb71
push edi
mov ecx, esi
call fcn.004102c0
mov eax, dword [0x43da30]
test eax, eax
je 0x40fb8e
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 1
call fcn.004257ba
mov dword [esp + 0x80], ebp
jmp 0x40fff3
lea ebp, [esi + 0x68]
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
mov dword [esp + 0x34], 3
call fcn.0040be10
test al, al
je 0x40fbe5
push str..gid
lea ecx, [esp + 0x28]
call fcn.00425828
lea eax, [esp + 0x24]
push 1
lea ecx, [esi + 0xd4]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x8c], 0x19
call fcn.00401ef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.004257ba
mov eax, dword [0x43da30]
test eax, eax
jne 0x40ffd7
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
mov dword [esp + 0x34], 6
call fcn.0040be10
test al, al
jne 0x40fc1a
lea eax, [esi + 0xd8]
mov ecx, esi
push eax
call fcn.004102c0
jmp 0x40fc72
lea ecx, [esp + 0x48]
call fcn.00421337
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 0x1a
push ecx
mov ecx, esi
call fcn.00410750
mov edx, dword [esp + 0x50]
lea edi, [edx - 1]
test edi, edi
jl 0x40fc61
mov eax, dword [esp + 0x4c]
lea ecx, [eax + edi*4]
push ecx
mov ecx, esi
call fcn.004102c0
mov eax, dword [0x43da30]
test eax, eax
jne 0x40ffae
dec edi
jns 0x40fc42
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 8
call fcn.0042136a
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
mov dword [esp + 0x34], 4
call fcn.0040be10
test al, al
je 0x40fc91
mov ecx, esi
call fcn.00410ad0
mov eax, dword [0x43da30]
test eax, eax
jne 0x40ffd7
mov eax, dword [0x43c520]
mov dword [esp + 0x20], eax
mov byte [esp + 0x80], 0x1b
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], 0x43
mov bl, 0x1c
mov cl, byte [esp + 0x24]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x14], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40ff9a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00425828
push 0x43a2d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], bl
call fcn.00425828
lea ecx, [esp + 0x1c]
push str._temp_
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x8c], 0x1d
call fcn.00425a03
lea ecx, [esp + 0x28]
push 1
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0x1e
call fcn.00401ef0
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0x1d
call fcn.004257ba
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], bl
call fcn.004257ba
push 0x43a2d8
lea ecx, [esp + 0x30]
call fcn.00425828
lea edx, [esp + 0x1c]
push str._tmp_
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x8c], 0x1f
call fcn.00425a03
lea ecx, [esp + 0x2c]
push 1
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0x20
call fcn.00401ef0
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 0x1f
call fcn.004257ba
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], bl
call fcn.004257ba
push str.file.chk
lea ecx, [esp + 0x34]
call fcn.00425828
lea edx, [esp + 0x1c]
push 0x43a2d0
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x8c], 0x21
call fcn.00425a03
xor edi, edi
lea ecx, [esp + 0x30]
push edi
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x8c], 0x22
call fcn.00401ef0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0x21
call fcn.004257ba
mov byte [esp + 0x80], bl
lea ecx, [esp + 0x30]
call fcn.004257ba
lea edx, [esp + 0x40]
mov ecx, ebp
push edx
mov dword [esp + 0x44], 5
call fcn.0040be10
test al, al
je 0x40ff80
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0xe017
push ecx
call fcn.00429ca0
lea edx, [esp + 0x20]
push 0xffffffffffffffff
push edx
mov ecx, esi
call fcn.00402c40
mov dword [esp + 0x5c], 0x4304c8
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0xa
push ecx
mov byte [esp + 0x84], 0x23
mov ecx, esp
mov dword [esp + 0x48], esp
push str..chk
call fcn.00425828
lea ecx, [esp + 0x60]
call fcn.00410d30
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..tmp
call fcn.00425828
lea ecx, [esp + 0x60]
call fcn.00410d30
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str..bak
call fcn.00425828
lea ecx, [esp + 0x60]
call fcn.00410d30
lea eax, [esp + 0x44]
mov ecx, ebp
push eax
mov dword [esp + 0x48], 3
call fcn.0040be10
test al, al
je 0x40ff05
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str..gid
call fcn.00425828
lea ecx, [esp + 0x60]
call fcn.00410d30
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x43c11c
call fcn.00425828
lea ecx, [esp + 0x60]
call fcn.00410d30
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00410020
mov dword [esp + 0x5c], 0x4304c8
mov edi, dword [esp + 0x60]
xor eax, eax
cmp edi, eax
mov byte [esp + 0x80], 0x24
je 0x40ff5d
lea eax, [edi + 8]
push 1
push eax
call fcn.00420b15
mov edi, dword [edi]
test edi, edi
jne 0x40ff4a
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call fcn.004215c8
mov dword [esp + 0x70], 0
xor edi, edi
mov eax, dword [0x43da30]
cmp eax, edi
mov byte [esp + 0x80], 0x1b
lea ecx, [esp + 0x1c]
jne 0x40ffc1
call fcn.004257ba
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x5a
mov dword [esp + 0x24], eax
jle 0x40fcc3
jmp 0x40ffc6
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 8
call fcn.0042136a
jmp 0x40ffd7
call fcn.004257ba
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 8
call fcn.004257ba
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 1
call fcn.004257ba
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004257ba
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret