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

Disassembly:
mov eax, 0x43088c
call fcn.004083b8
sub esp, 0x640
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x41cee8
test byte [0x4569c0], 1
mov esi, 0x456990
jne 0x41c9fc
mov al, byte [ebp + 0xb]
or byte [0x4569c0], 1
mov byte [0x456990], al
mov al, byte [ebp + 0xb]
mov ecx, esi
mov byte [0x456991], al
mov byte [0x456998], bl
call fcn.0041f409
push 0x41cef9
call fcn.004072f6
pop ecx
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov dword [0x456acc], 0x456990
mov byte [ebp - 0x28], al
call fcn.00403360
push edi
call fcn.00409f30
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00403650
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.0041eafe
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call fcn.00403360
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x456994]
je 0x41ca68
mov ecx, dword [eax + 0x38]
cmp ecx, ebx
je 0x41ca68
cmp ecx, 0xffffffff
je 0x41ca68
mov edi, dword [eax + 0x38]
lea esi, [eax + 0x1c]
jmp 0x41cb11
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
push ebx
push ebx
test eax, eax
push 3
push ebx
je 0x41ca7a
push 3
jmp 0x41ca7c
push 7
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41cab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.CreateFile__s__fails_with__d_n
push 0x444698
call fcn.00413226
add esp, 0x10
push 1
pop eax
jmp 0x41ceea
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00403360
push dword [ebp + 8]
call fcn.00409f30
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00403650
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
mov dword [ebp - 4], 1
call fcn.0041e4cf
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403360
push dword [ebp + 8]
mov dword [esi + 0x1c], edi
call fcn.00409f30
pop ecx
push eax
lea ecx, [esi + 0x2c]
push dword [ebp + 8]
call fcn.00403650
mov eax, dword [esi + 0x20]
cmp eax, 5
je 0x41cbff
cmp eax, ebx
jne 0x41cb48
push dword [ebp + 8]
lea eax, [ebp - 0x264]
push eax
call fcn.0040d890
pop ecx
lea eax, [ebp - 0x264]
pop ecx
mov byte [ebp - 0x261], bl
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 0x20], eax
cmp byte [0x4569c8], bl
jne 0x41cb60
push 0x104
push 0x4569c8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [esi + 8], ebx
je 0x41cb92
cmp dword [esi + 0x1c], 0xffffffff
je 0x41cb92
cmp byte [0x4569c8], bl
je 0x41cb92
push 0x4569c8
call fcn.00409f30
push eax
push dword [ebp + 8]
push 0x4569c8
call fcn.00407ce4
add esp, 0x10
test eax, eax
jne 0x41cbff
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x4569a0], ebx
mov dword [ebp - 0x10], eax
jne 0x41cbc3
or dword [esi + 0x1c], 0xffffffff
push edi
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x41cee8
cmp dword [ebp - 0x10], 0xffffffff
je 0x41cee8
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x456994]
je 0x41cc07
lea ecx, [ebp - 0x30]
add eax, 0x1c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x41cc07
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x24]
jne 0x41cc07
inc dword [esi + 0x24]
jmp 0x41caab
inc dword [esi + 0x28]
push 0x442f10
push dword [ebp + 8]
call fcn.00427aa5
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x41cc43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.Cannot__tfopen__s___last_error_d
push 0x20
push 0x444698
call fcn.00413026
add esp, 0x14
jmp 0x41caab
mov dl, byte [0x4541f8]
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x64b]
mov byte [ebp - 0x64c], dl
push 0x3e
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x15f]
mov byte [ebp - 0x160], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov dword [ebp + 8], ecx
call fcn.0041e97c
push dword [ebp - 0x14]
lea eax, [ebp - 0x64c]
mov byte [ebp - 0x64c], bl
push 0x3e8
push eax
call fcn.00409a04
lea eax, [ebp - 0x64c]
push 0x442f04
push eax
call fcn.004078e9
add esp, 0x14
cmp eax, ebx
je 0x41cecf
push eax
call fcn.0041c24a
mov esi, eax
pop ecx
cmp byte [esi], 0x5b
jne 0x41cd16
mov edi, 0x442f00
push edi
push esi
call fcn.00409e63
pop ecx
cmp eax, esi
pop ecx
jbe 0x41cd16
push edi
push esi
call fcn.00409e63
push esi
mov byte [eax], bl
call fcn.0040770e
push eax
call fcn.0041c24a
push 0xfa
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00407995
add esp, 0x1c
jmp 0x41cecf
cmp byte [ebp - 0x160], bl
je 0x41cecf
mov edi, 0x433aec
push edi
push esi
call fcn.00409e63
pop ecx
test eax, eax
pop ecx
je 0x41cecf
cmp byte [esi], 0x3b
je 0x41cecf
push edi
push esi
call fcn.004078e9
push 0x433750
push ebx
call fcn.004078e9
push esi
mov edi, eax
call fcn.0041c24a
add esp, 0x14
cmp edi, ebx
mov esi, eax
je 0x41cd98
push edi
call fcn.0041c24a
mov edi, eax
pop ecx
cmp byte [edi], 0x22
jne 0x41cd94
push edi
call fcn.00409f30
cmp byte [eax + edi - 1], 0x22
pop ecx
jne 0x41cd94
push edi
call fcn.0040770e
mov edi, eax
push edi
call fcn.00409f30
pop ecx
mov byte [eax + edi - 1], bl
pop ecx
cmp edi, ebx
jne 0x41cd9d
mov edi, 0x4541f8
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x60], al
call fcn.00403360
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x60]
call fcn.00403650
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
mov byte [ebp - 0x28], al
call fcn.00403360
lea eax, [ebp - 0x160]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403650
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0041e45b
mov ecx, eax
add ecx, 0xc
call fcn.0041812c
push edi
mov dword [ebp - 0x10], eax
call fcn.00409f30
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.00403650
push 1
lea ecx, [ebp - 0x28]
pop edi
mov byte [ebp - 4], 2
push edi
call fcn.00403360
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x60]
call fcn.00403360
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.00403360
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00403650
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 4
mov byte [ebp - 0x40], al
call fcn.00403360
lea eax, [ebp - 0x160]
push eax
call fcn.00409f30
pop ecx
push eax
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403650
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 5
call fcn.0041e45b
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x50]
push edx
push ecx
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.004033b0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00403360
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x50]
call fcn.00403360
mov eax, dword [ebp - 0x14]
test byte [eax + 0xc], 0x10
je 0x41cc91
push eax
call fcn.00409de6
pop ecx
jmp 0x41caab
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret