Function at 0x403c30
Capabilities:
Get common file path
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x403f9c
call fcn.00405310
mov dword [ebp - 0x434], eax
test eax, eax
je 0x403f9c
mov esi, 0x470000
mov dword [ebp - 0x424], 0
mov edi, 1
mov dword [ebp - 0x430], esi
push 0x44
lea eax, [ebp - 0x488]
mov ebx, 5
push 0
push eax
call fcn.0040bad0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x488], 0x44
push eax
push esi
mov word [ebp - 0x458], bx
call fcn.00405490
add esp, 0x14
test eax, eax
je 0x403f9c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x403f9c
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004051a0
add esp, 8
test eax, eax
je 0x403f9c
push 0xc
push str.DrvSetup.exe
xor ebx, ebx
push esi
mov dword [ebp - 0x42c], ebx
call fcn.0041745d
add esp, 0xc
test eax, eax
jne 0x403d2e
lea eax, [ebp - 0x30c]
push eax
call fcn.00404d70
add esp, 4
test eax, eax
cmovne ebx, edi
mov dword [ebp - 0x42c], ebx
cmp dword [0x46ffe8], 0
mov dword [ebp - 0x428], 0
jbe 0x403f8e
mov ebx, 0x45e028
mov dword [ebp - 0x414], ebx
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403d60
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x403daa
lea eax, [edi + edi]
call fcn.0040ace0
mov esi, esp
test esi, esi
je 0x403daa
push edi
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x108]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x41c], eax
jmp 0x403db4
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403dc0
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x403e0a
lea eax, [edi + edi]
call fcn.0040ace0
mov esi, esp
test esi, esi
je 0x403e0a
push edi
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x420], eax
jmp 0x403e14
mov dword [ebp - 0x420], 0
add ebx, 0x100
je 0x403e64
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e21
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x403e64
lea eax, [edi + edi]
call fcn.0040ace0
mov esi, esp
test esi, esi
je 0x403e64
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov dword [ebp - 0x418], eax
jmp 0x403e6e
mov dword [ebp - 0x418], 0
mov ebx, dword [ebp - 0x414]
test ebx, ebx
jne 0x403e7c
xor esi, esi
jmp 0x403ec7
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e81
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x403ebe
lea eax, [esi + esi]
call fcn.0040ace0
mov edi, esp
test edi, edi
je 0x403ebe
push esi
push edi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb esi, esi
and esi, edi
jmp 0x403ec0
xor esi, esi
lea eax, [ebx - 0x40]
test eax, eax
je 0x403f1d
lea ecx, [ebx - 0x40]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ed0
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x403f17
lea eax, [ebx + ebx]
call fcn.0040ace0
mov edi, esp
test edi, edi
je 0x403f17
push ebx
mov ebx, dword [ebp - 0x414]
xor eax, eax
push edi
push 0xffffffffffffffff
mov word [edi], ax
lea eax, [ebx - 0x40]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x403f1f
mov ebx, dword [ebp - 0x414]
xor eax, eax
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x488]
push ecx
push dword [ebp - 0x41c]
push 0
push 0
push dword [ebp - 0x420]
push 0
push 1
push dword [ebp - 0x418]
push esi
push eax
call dword [0x478000]
test eax, eax
jne 0x403fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52e
je 0x403f69
cmp eax, 5
jne 0x4040b9
mov eax, dword [ebp - 0x428]
add ebx, 0x240
inc eax
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x428], eax
cmp eax, dword [0x46ffe8]
jb 0x403d50
push 0
push 0x1a
push 9
call fcn.00403800
add esp, 0xc
xor eax, eax
lea esp, [ebp - 0x494]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret
push 0x64
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404030
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, dword [ebp - 0x424]
push 0x450808
push 0
push 0
push 0
call ebx
test eax, eax
je 0x40401e
cmp dword [0x45d0f8], eax
jne 0x403ffe
push 0x450808
push 0
push eax
push 0
call ebx
test eax, eax
jne 0x403fe4
jmp 0x40401e
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call esi
mov eax, dword [ebp - 0x434]
dec eax
cmp edi, eax
jne 0x40401e
push 0
push dword [0x45d0f8]
call esi
push 0x64
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403fd3
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x42c], 0
je 0x404056
lea eax, [ebp - 0x30c]
push eax
call dword [0x478024]
test eax, eax
je 0x4040c3
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x403f9c
mov ebx, dword [ebp - 0x424]
mov edi, 1
mov esi, dword [ebp - 0x430]
inc ebx
add esi, 0x100
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x430], esi
cmp ebx, dword [ebp - 0x434]
jb 0x403c8d
cmp dword [0x46fffc], 0
jne 0x4040b2
push 0
push dword [0x45d0f8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
jmp 0x403f9e
push eax
push 0x19
push 7
jmp 0x403f94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x21
push 0xa
jmp 0x403f94