Function at 0x40eb30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff654
mov dword [ebp - 0x3c], eax
mov eax, 0x5042d0
call fcn.004c58b8
xor edx, edx
mov dword [ebp - 0x40], edx
mov word [ebp - 0x28], 8
lea eax, [ebp - 4]
call fcn.00401e94
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 0x14
push 0x4ff0c2
push str.._ftd2xx.dll
call fcn.004c77a8
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40ec02
lea edx, [ebp - 0x458]
mov dword [ebp - 0x44], edx
push 0x105
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_GetSystemDirectoryA
push str._ftd2xx.dll
lea ecx, [ebp - 0x458]
push ecx
call fcn.004c54d0
add esp, 8
push 0x4ff0d1
lea eax, [ebp - 0x458]
push eax
call fcn.004c77a8
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x40ebf7
xor edx, edx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x4e0]
mov ecx, dword [eax]
call dword [ecx + 0x64]
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d14dc
mov ecx, dword [ebp - 0x38]
mov dword fs:[0], ecx
jmp 0x40ee11
push dword [ebp - 0x58]
call fcn.004c72b4
pop ecx
jmp 0x40ec0b
push dword [ebp - 0x54]
call fcn.004c72b4
pop ecx
mov byte [ebp - 0x458], 0
push 0x40000002
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x40]
call fcn.004e4d6c
mov dword [ebp - 0x50], eax
mov word [ebp - 0x28], 0x20
lea edx, [ebp - 0x458]
lea eax, [ebp - 8]
call fcn.004d137c
inc dword [ebp - 0x1c]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004d150c
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d14dc
cmp dword [ebp - 0x50], 0
jne 0x40eccf
mov word [ebp - 0x28], 0x2c
mov edx, 0x4ff0d4
lea eax, [ebp - 0xc]
call fcn.004d137c
inc dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004d15c0
test al, al
setne cl
and ecx, 1
push ecx
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d14dc
pop ecx
test ecx, ecx
je 0x40eccf
mov dl, 1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4e0]
mov ecx, dword [eax]
call dword [ecx + 0x64]
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d14dc
mov ecx, dword [ebp - 0x38]
mov dword fs:[0], ecx
jmp 0x40ee11
xor eax, eax
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
shl edx, 6
lea ecx, [ebp - 0x9ac]
add edx, ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x4ac], edx
mov edx, dword [ebp - 0x4c]
shl edx, 6
mov byte [ebp + edx - 0x9ac], 0
inc dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0x14
jl 0x40ecd4
xor ecx, ecx
mov dword [ebp - 0x45c], ecx
push 0x20000002
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4ac]
push edx
call fcn.004e4d6c
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40eddc
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x28], 0x38
mov edx, dword [ebp - 0x4c]
shl edx, 6
lea eax, [ebp - 0x9ac]
add edx, eax
lea eax, [ebp - 0x10]
call fcn.004d137c
inc dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004d150c
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0x28], 0x44
mov edx, 0x4ff0eb
lea eax, [ebp - 0x14]
call fcn.004d137c
inc dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004d15c0
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d14dc
pop ecx
test cl, cl
je 0x40edcf
mov dl, 1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4e0]
mov ecx, dword [eax]
call dword [ecx + 0x64]
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d14dc
mov ecx, dword [ebp - 0x38]
mov dword fs:[0], ecx
jmp 0x40ee11
inc dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0x14
jl 0x40ed32
xor edx, edx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4e0]
mov ecx, dword [eax]
call dword [ecx + 0x64]
push 0x518354
call fcn.0042df6c
pop ecx
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d14dc
mov ecx, dword [ebp - 0x38]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret