Function at 0x40382f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [0x40700c]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebx
mov dword [0x408b68], ebx
cmp dword [0x407a28], ebx
jne 0x4038a1
push 4
push 0x408b4c
push 0x4011cc
call fcn.004042f1
test eax, eax
je 0x403882
cmp eax, 4
jbe 0x4038a1
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.004040e2
mov dword [0x408b68], 0x80070714
jmp 0x403bd7
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x1c], esi
and dword [esp + 0x20], 0
push 0x44
lea eax, [esp + 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x407c42], 0
mov dword [esp + 0x48], 0x44
jne 0x4039d3
push 4
lea eax, [esp + 0x18]
push eax
push 0x4011d4
call fcn.004042f1
test eax, eax
je 0x4039c1
cmp eax, 4
ja 0x4039c1
xor eax, eax
inc eax
cmp dword [esp + 0x14], eax
jne 0x40390b
mov dword [esp + 0x74], eax
xor eax, eax
jmp 0x403919
cmp dword [esp + 0x14], 2
jne 0x403920
push 6
mov dword [esp + 0x78], eax
pop eax
mov word [esp + 0x78], ax
jmp 0x403932
push 3
pop ecx
cmp dword [esp + 0x14], ecx
jne 0x403932
mov dword [esp + 0x74], eax
mov word [esp + 0x78], cx
test esi, esi
jne 0x4039e9
mov ax, word [0x407a38]
test ax, ax
je 0x40399e
test al, 1
je 0x403950
mov eax, 0x4011e0
jmp 0x40395d
test al, 2
je 0x403bd7
mov eax, 0x4011e8
push 0x104
lea ecx, [esp + 0x94]
push ecx
push eax
call fcn.004042f1
test eax, eax
je 0x4039c1
push 0xffffffffffffffff
push 0x4011c4
push 0xffffffffffffffff
lea eax, [esp + 0x9c]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
cmp eax, 0xfffffffe
je 0x40399e
xor edi, edi
inc edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x403a3d
push 0x104
lea eax, [esp + 0x94]
push eax
push 0x4011f0
call fcn.004042f1
test eax, eax
jne 0x4039e9
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4b1
push eax
jmp 0x40388d
mov edx, 0x407c42
mov eax, 0x104
lea ecx, [esp + 0x90]
call fcn.0040148d
xor eax, eax
inc eax
cmp esi, eax
jne 0x403a3d
push 0x104
lea eax, [esp + 0x94]
push eax
push 0x4011fc
call fcn.004042f1
test eax, eax
je 0x4039c1
xor esi, esi
inc esi
cmp byte [0x407c42], 0
jne 0x403bbc
push 0xffffffffffffffff
push 0x4011c4
push 0xffffffffffffffff
lea eax, [esp + 0x9c]
push eax
push esi
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringA]
dec eax
dec eax
je 0x403bbc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x18]
call fcn.004017ea
test eax, eax
je 0x403bd7
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x20]
jne 0x403a88
xor eax, eax
inc eax
cmp word [0x408b60], ax
je 0x403a88
cmp dword [0x407a20], 0
je 0x403a88
test esi, esi
jne 0x403a90
mov dword [esp + 0x24], eax
call fcn.00401d56
test esi, esi
je 0x403b91
cmp dword [0x407264], 0
je 0x403c31
test esi, esi
je 0x403b91
test byte [0x408b54], 4
je 0x403b91
call fcn.00405fed
mov edi, eax
test edi, edi
je 0x403c19
mov esi, str.DoInfInstall
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x403bee
and dword [esp + 0x28], 0
cmp dword [0x407a30], 0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x90]
mov dword [esp + 0x38], eax
mov ax, word [0x408b60]
mov word [esp + 0x3c], ax
movzx eax, word [0x407a38]
mov dword [esp + 0x2c], 0x408274
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x408304
mov dword [esp + 0x40], eax
je 0x403b28
or eax, 0x10000
mov dword [esp + 0x40], eax
mov ecx, dword [0x408b54]
test cl, 8
je 0x403b3c
or eax, 0x20000
mov dword [esp + 0x40], eax
test cl, 0x10
je 0x403b4a
or eax, 0x40000
mov dword [esp + 0x40], eax
mov ecx, dword [0x407d48]
test cl, 0x40
je 0x403b5e
or eax, 0x80000
mov dword [esp + 0x40], eax
test cl, cl
jns 0x403b6b
or eax, 0x100000
mov dword [esp + 0x40], eax
mov eax, dword [0x408b58]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
call edx
mov dword [0x408b68], eax
push edi
test eax, eax
js 0x403bce
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x18]
jmp 0x403ba4
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x48]
mov edx, esi
call fcn.00403c5a
test eax, eax
je 0x403bd4
push esi
call ebx
mov esi, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x1c], esi
cmp esi, 2
jb 0x4038ad
xor esi, esi
inc esi
cmp dword [0x407650], 0
je 0x403bca
call fcn.00401f9e
mov eax, esi
jmp 0x403bd9
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebx
xor eax, eax
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004068a6
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push 0x10
push eax
push esi
push 0x4c9
push eax
call fcn.004040e2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x10]
call ebx
call fcn.00405de9
mov dword [0x408b68], eax
jmp 0x403bd7
xor eax, eax
push eax
push 0x10
push eax
push 0x4010dc
push 0x4c8
push eax
call fcn.004040e2
jmp 0x403c07
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x4c7
push eax
call fcn.004040e2
push dword [esp + 0x10]
call ebx
mov dword [0x408b68], 0x8007042b
jmp 0x403bd7