Function at 0x10032a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x448
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x444], eax
mov eax, dword [esp + 0x44c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
mov esi, edx
lea edx, [esp + 0x34d]
push ebx
xor edi, edi
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov byte [esp + 0x354], bl
call fcn.10116880
add esp, 0xc
push 0x103
lea eax, [esp + 0x35]
push ebx
push eax
mov byte [esp + 0x3c], bl
call fcn.10116880
add esp, 0xc
cmp esi, ebx
je 0x10032abf
cmp byte [esi], bl
je 0x10032abf
push esi
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10032b2a
push 0x104
lea edx, [esp + 0x34c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x348]
call fcn.10049c80
mov eax, esi
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esp + 0x30], bl
je 0x10032b1e
lea eax, [esp + 0x30]
lea esp, [esp]
inc eax
cmp byte [eax], bl
jne 0x10032b00
lea edx, [esp + 0x30]
sub eax, edx
je 0x10032b1e
cmp byte [esp + eax + 0x2f], 0x5c
je 0x10032b1e
push 0x10149ea8
mov eax, edx
push eax
call esi
push str.driversetchosts
lea ecx, [esp + 0x34]
push ecx
call esi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
call fcn.1005bf90
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x10032d51
cmp eax, ebx
je 0x10032cb6
lea edx, [esp + 0x12]
push edx
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push ecx
lea ebx, [esp + 0x20]
lea edi, [esp + 0x34]
call fcn.10037650
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10032cb6
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
push edi
call fcn.100454f0
add esp, 4
cmp eax, ebx
je 0x10032ce6
mov cl, byte [edi]
cmp cl, bl
je 0x10032ce6
cmp cl, 0x23
je 0x10032ce6
cmp eax, 0x104
jge 0x10032ce6
push 0x103
lea edx, [esp + 0x245]
push ebx
push edx
mov byte [esp + 0x24c], bl
call fcn.10116880
add esp, 0xc
push 0x103
lea eax, [esp + 0x13d]
push ebx
push eax
mov byte [esp + 0x144], bl
call fcn.10116880
lea ecx, [esp + 0x20]
add esp, 0xc
push ecx
lea edx, [esp + 0x244]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.10046ea0
lea edx, [esp + 0x18]
add esp, 4
push edx
lea edx, [esp + 0x13c]
mov ecx, edi
call fcn.10046ea0
add esp, 4
cmp byte [esp + 0x240], bl
je 0x10032ce6
cmp byte [esp + 0x138], bl
je 0x10032ce6
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10032ccc
cmp byte [eax], bl
je 0x10032c96
lea ecx, [esp + 0x138]
call fcn.10031890
test eax, eax
jne 0x10032c96
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x10032c9a
cmp byte [edi], bl
je 0x10032c9a
mov eax, edi
lea ecx, [esp + 0x240]
call fcn.10031890
test eax, eax
jne 0x10032c9a
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x20], 2
call fcn.1010dc10
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x10032d53
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x138]
call fcn.10031890
test eax, eax
jne 0x10032cd0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
push eax
call fcn.1010dc10
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x10032d53
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x10032ce6
mov eax, edi
lea ecx, [esp + 0x240]
call fcn.10031890
test eax, eax
je 0x10032cae
cmp ebp, ebx
je 0x10032cf1
mov al, byte [esp + 0x13]
mov byte [ebp], al
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10032cff
mov cl, byte [esp + 0x12]
mov byte [eax], cl
cmp esi, ebx
je 0x10032cb6
push 0xa
push esi
mov edi, esi
call fcn.1010d780
add esp, 8
cmp eax, ebx
jne 0x10032d18
xor esi, esi
jmp 0x10032d36
mov dl, byte [eax]
mov ebp, eax
mov byte [eax], bl
lea esi, [eax + 1]
dec eax
cmp byte [eax], 0xd
mov byte [esp + 0x13], dl
jne 0x10032d36
mov dword [esp + 0x18], eax
mov byte [esp + 0x12], 0xd
mov byte [eax], bl
cmp edi, ebx
jne 0x10032b87
mov eax, dword [esp + 0x20]
push eax
call fcn.1010dc10
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x10032d53
mov eax, edi
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x448
ret