Function at 0x45bc9d
Capabilities:
Get disk information
Get file size
Query environment variable

Disassembly:
push ebp
sub esp, 0xac4
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0xac4], eax
push 0x38
mov eax, 0x53475f
call fcn.004f41c4
mov edi, dword [ebp + 0xad0]
mov esi, ecx
lea ecx, [ebp]
mov dword [ebp - 0x10], esi
call fcn.004063ed
and dword [ebp - 4], 0
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0049bf42
test eax, eax
je 0x45bd1f
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004064c1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xac4]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0xac8
leave
ret 8
mov ecx, esi
call fcn.0045bb2a
push edi
lea ecx, [ebp]
call fcn.00489793
cmp dword [ebp + 0xad4], 0
jne 0x45bd4b
lea ecx, [ebp]
call fcn.00489e3d
test eax, eax
je 0x45bd4b
push 0x552860
jmp 0x45bd50
push 0x55285c
push edi
mov ecx, ebx
call fcn.0049c37f
test eax, eax
jne 0x45bd88
mov eax, dword [0x597b60]
test eax, eax
je 0x45bd6a
mov esi, dword [eax + 0x20]
jmp 0x45bd6c
xor esi, esi
push 0x74
mov ecx, 0x598978
call fcn.0045a895
push eax
push esi
call fcn.004066e3
pop ecx
pop ecx
xor esi, esi
jmp 0x45bcec
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [esi + 0x158]
push eax
call ebx
xor edi, edi
cmp dword [ebp + 0xad4], edi
jne 0x45bdba
mov ecx, dword [ebp - 0x14]
push 2
push edi
call fcn.0049bf53
mov ecx, dword [ebp - 0x14]
push 0x552858
call fcn.0049bf88
push 0x3ff
lea eax, [ebp + 0x6c5]
push edi
push eax
mov byte [ebp + 0x6c4], 0
call fcn.004f42d0
add esp, 0xc
push edi
lea ecx, [ebp - 0x44]
call fcn.004ab617
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push edi
lea ecx, [ebp - 0x44]
call fcn.004ab8c4
test eax, eax
je 0x45be10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.004ab73c
mov ecx, esi
call fcn.0045bad6
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x18]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x54f280
lea eax, [ebp + 0x6c4]
push str._s__v_u._u._u._u___04u__02u__02u___02u:_02u:_02u_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x14]
add esp, 0x34
lea eax, [ebp + 0x6c4]
push eax
call fcn.0049bf88
mov ecx, esi
call fcn.0045bad6
lea ecx, [ebp + 0x4cc]
call fcn.00407118
push 0x5441cc
lea eax, [ebp + 0x6c4]
push eax
call ebx
lea ecx, [ebp + 0x4cc]
call fcn.0045b914
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x45beb3
push str.Win_95
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b8fe
test eax, eax
je 0x45becc
push str.Win_95_OSR2
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b92a
test eax, eax
je 0x45bee5
push str.Win_98
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b8e7
test eax, eax
je 0x45befe
push str.Win_ME
jmp 0x45bfd8
mov esi, dword [ebp + 0x4dc]
test esi, esi
jne 0x45bf12
push str.Win_32s
jmp 0x45bfd8
cmp esi, 2
jne 0x45bf46
cmp dword [ebp + 0x4d0], 4
ja 0x45bf2a
push str.Win_NT
jmp 0x45bfd8
cmp dword [ebp + 0x4d0], 5
jne 0x45bf46
cmp dword [ebp + 0x4d4], 0
jne 0x45bf46
push str.Win_2K
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b85d
test eax, eax
je 0x45bf5c
push str.Win_XP
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b874
test eax, eax
je 0x45bf72
push str.Win_2K3
jmp 0x45bfd8
cmp esi, 2
jne 0x45bf90
cmp dword [ebp + 0x4d0], 6
jne 0x45bf90
cmp dword [ebp + 0x4d4], 0
jne 0x45bf90
push str.Win_Vista
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b8a2
test eax, eax
je 0x45bfa6
push str.Window_7
jmp 0x45bfd8
lea ecx, [ebp + 0x4cc]
call fcn.0045b8b9
test eax, eax
je 0x45bfbc
push str.Window_8
jmp 0x45bfd8
cmp esi, 2
jne 0x45bfe1
cmp dword [ebp + 0x4d0], 0xa
jne 0x45bfe1
cmp dword [ebp + 0x4d4], 0
jne 0x45bfe1
push str.Window_10
lea eax, [ebp + 0x6c4]
push eax
call edi
movzx eax, word [ebp + 0x4d8]
lea ecx, [ebp + 0x4e0]
push ecx
push eax
push dword [ebp + 0x4d4]
lea eax, [ebp + 0x6c4]
push dword [ebp + 0x4d0]
push str._v_u._u._u__s_n
push eax
call fcn.004f3730
pop ecx
lea eax, [ebp + eax + 0x6c4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea eax, [ebp + 0x6c4]
push eax
call fcn.0049bf88
push 0x552794
lea eax, [ebp + 0x6c4]
push eax
call ebx
mov dword [ebp - 0x14], 0x41
mov esi, 0x598978
mov ebx, 0x5441e4
mov al, byte [ebp - 0x14]
mov byte [ebp + 0x6c4], al
lea eax, [ebp + 0x6c4]
push eax
lea ecx, [ebp]
call fcn.00489793
lea ecx, [ebp]
call fcn.0048ac86
push dword [ebp - 0x14]
mov ecx, esi
push 0x75
mov dword [ebp - 0x1c], eax
call fcn.0045a895
push eax
lea eax, [ebp + 0x7f0]
push str._s__C:__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x1c]
add esp, 0x10
dec eax
je 0x45c13a
dec eax
je 0x45c136
dec eax
je 0x45c0c2
dec eax
je 0x45c0be
dec eax
je 0x45c0ba
dec eax
jne 0x45c169
push 0x7b
jmp 0x45c13c
push 0x7a
jmp 0x45c13c
push 0x79
jmp 0x45c13c
and dword [ebp - 0x18], 0
lea ecx, [ebp]
mov byte [ebp + 0x5c4], 0
mov byte [ebp + 0x560], 0
call fcn.00489997
push 0x64
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x560]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp + 0x5c4]
push eax
lea eax, [ebp + 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x18]
lea eax, [ebp + 0x560]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x5c4]
push eax
push 0x78
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x7f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x45c14d
push 0x77
jmp 0x45c13c
push 0x76
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x7f0]
push eax
call edi
push ebx
lea eax, [ebp + 0x7f0]
push eax
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x7f0]
push eax
add ecx, 4
call fcn.0049bf88
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x5a
jle 0x45c04d
lea ecx, [ebp]
call fcn.00489a96
lea eax, [ebp]
push eax
push 0x7c
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
lea ecx, [ebp]
call fcn.00489fed
lea eax, [ebp]
push eax
push 0x7d
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
lea ecx, [ebp]
call fcn.0048acc9
lea eax, [ebp]
push eax
push 0x7e
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
cmp dword [ebp + 0x4dc], 2
jne 0x45c295
push 0x100
lea eax, [ebp + 0x5c4]
push eax
push str._USERPROFILE_
mov byte [ebp + 0x5c4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp + 0x5c4], 0
je 0x45c295
lea eax, [ebp + 0x5c4]
push eax
push 0x7f
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
lea ecx, [ebp]
call fcn.00489a76
lea eax, [ebp]
push eax
push 0x80
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
lea ecx, [ebp]
call fcn.00489a61
lea eax, [ebp + 0x5c4]
push eax
push 0
lea ecx, [ebp]
mov byte [ebp + 0x5c4], 0
call fcn.004898dc
lea eax, [ebp + 0x5c4]
push eax
push 0x81
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
lea ecx, [ebp]
call fcn.00489a61
xor ecx, ecx
push ecx
mov eax, 0x80
push eax
push 3
push ecx
push ecx
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x45c39f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x82
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push str._s____lu_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x438]
call fcn.0047017d
push 0x337
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5416b4
lea eax, [ebp + 0x6c4]
push eax
call edi
lea ecx, [ebp + 0x438]
call fcn.0047047e
neg eax
sbb eax, eax
add eax, 0x73
push eax
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push eax
call edi
push ebx
lea eax, [ebp + 0x6c4]
push eax
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x6c4]
push eax
add ecx, 4
call fcn.0049bf88
push str.Windows_x64__
lea eax, [ebp + 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
call fcn.00406295
neg eax
sbb eax, eax
pop ecx
add eax, 0x73
push eax
mov ecx, esi
call fcn.0045a895
push eax
lea eax, [ebp + 0x6c4]
push eax
call edi
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x6c4]
add edi, 4
push eax
mov ecx, edi
call fcn.0049bf88
push ebx
mov ecx, edi
call fcn.0049bf88
mov ecx, dword [ebp - 0x10]
call fcn.0045bbb7
push ebx
mov ecx, edi
call fcn.0049bf88
push 0x83
mov ecx, esi
call fcn.0045a895
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0045b97d
mov ecx, edi
call fcn.0049bf34
lea ecx, [ebp + 0x438]
mov byte [ebp - 4], 1
call fcn.00470194
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004ab8bf
jmp 0x45bce9