Function at 0x404a3f
Capabilities:
Check for software breakpoints
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
mov eax, dword [0x40761c]
sub eax, 0x46
mov dword [ebp - 0x174], eax
mov dword [0x408174], 0xcc615
mov dword [ebp - 0x17c], 0x407330
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x190], 0x407318
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x188]
dec eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov eax, dword [ebp - 0x178]
add eax, 8
mov dword [ebp - 0x178], eax
push 0x17b0bfbd
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov eax, dword [ebp - 0x17c]
add eax, dword [0x4077c8]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0xc8]
push eax
push 0x449d7a78
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov eax, dword [ebp - 0x190]
imul eax, dword [ebp - 0x174]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x178]
add eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], eax
mov eax, dword [0x4081f4]
add eax, dword [ebp - 0x17c]
mov dword [0x4081f4], eax
mov eax, dword [0x4080c0]
add eax, dword [ebp - 0x178]
mov dword [0x4080c0], eax
mov eax, dword [ebp - 0x190]
inc eax
mov dword [ebp - 0x190], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
test eax, eax
je 0x404b5b
mov eax, dword [ebp - 0x188]
dec eax
mov dword [ebp - 0x188], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xb4], eax
cmp dword [0x408188], 0
jne 0x404b91
mov eax, dword [ebp - 0x174]
add eax, 7
mov dword [ebp - 0x174], eax
mov eax, dword [0x4080a0]
add eax, dword [ebp - 0x188]
mov dword [0x4080a0], eax
jmp 0x404bb0
mov eax, dword [ebp - 0x17c]
inc eax
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x174]
add eax, dword [0x407284]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x178]
add eax, 4
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0x76baa
jae 0x404c01
mov eax, dword [ebp - 0x17c]
add eax, 5
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x188]
imul eax, dword [ebp - 0x17c]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x190]
add eax, dword [ebp - 0x188]
mov dword [ebp - 0x190], eax
jmp 0x404c35
mov eax, dword [0x4080a0]
add eax, dword [ebp - 0x174]
mov dword [0x4080a0], eax
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x190]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x17c]
add eax, dword [ebp - 0x178]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 0x6e
mov byte [ebp - 3], 0x6e
mov byte [ebp - 2], 0
mov eax, dword [ebp - 0x174]
dec eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x16c], 0x34
mov eax, dword [0x4081f4]
add eax, dword [ebp - 0x178]
mov dword [0x4081f4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x170], eax
mov ecx, 0x906bb4b1
mov eax, dword [ebp - 0x17c]
sub eax, dword [0x40758c]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov eax, dword [ebp - 0x178]
inc eax
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [0x40819c]
add eax, dword [ebp - 0x188]
mov dword [0x40819c], eax
mov dword [ebp - 0x16c], ecx
push 6
push 0x21091303
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov eax, dword [ebp - 0x178]
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [0x408054], eax
cmp dword [ebp - 0x16c], 0x34
je 0x404dcd
mov eax, dword [ebp - 0x16c]
add eax, 0x6f944b4f
je 0x404dcd
mov eax, dword [ebp - 0x178]
inc eax
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [0x40819c]
add eax, dword [ebp - 0x188]
mov dword [0x40819c], eax
mov eax, dword [0x408054]
movzx eax, byte [eax - 3]
cmp eax, 0x90
je 0x404d4d
mov eax, dword [0x408054]
movzx eax, byte [eax - 3]
cmp eax, 0xcc
je 0x404d4d
push 1
call dword [0x40725c]
mov dword [ebp - 0x194], 0xfefc1929
and dword [ebp - 0x198], 0
jmp 0x404d6d
mov eax, dword [ebp - 0x198]
inc eax
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0x143ff30
jge 0x404db7
mov eax, dword [ebp - 0x178]
inc eax
inc eax
mov dword [ebp - 0x178], eax
mov eax, dword [0x40819c]
add eax, dword [ebp - 0x188]
mov dword [0x40819c], eax
cmp dword [ebp - 0x198], 0x143fd68
jne 0x404db5
mov eax, dword [ebp - 0x194]
add eax, dword [ebp - 0x198]
mov dword [ebp - 0x194], eax
jmp 0x404d60
mov ebx, dword [ebp - 0x194]
mov eax, 0
add eax, ebx
call eax
mov eax, 0x64
sub eax, ecx
xor eax, eax
pop ebx
leave
ret