Function at 0x403c1f
Capabilities:
Create directory

Disassembly:
mov eax, 0x420b90
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
push 7
push edi
push 0x42c1e8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404cf6
cmp eax, edi
jge 0x403c79
lea ecx, [ebp - 0x14]
call fcn.00404cd3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
push 0x4309a8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x403d11
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.004039a4
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00403a78
cmp dword [ebp - 0x14], edi
mov byte [ebp - 4], 4
jne 0x403cbc
push 0x80004003
call fcn.00417ff8
lea ecx, [ebp - 0x24]
lea esi, [ebp - 0x4c]
push ecx
mov ebx, dword [ebp - 0x14]
sub esp, 0x10
mov edi, esp
mov eax, dword [ebx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0xe8]
test eax, eax
jge 0x403ce8
push 0x42c1d8
push ebx
push eax
call fcn.00418006
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x403d03
push eax
call fcn.00417ff8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004040d3
jmp 0x403d4a
push ecx
mov ecx, dword [esi + 0x158]
mov eax, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040803f
mov ecx, eax
call fcn.00404ce0
mov ecx, eax
call fcn.00404118
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00404ce0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040425b
mov esi, eax
cmp si, 0xffff
jne 0x4040b3
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str._Glsetup2_PackageInfo
call fcn.004039a4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00404ce0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.004041f4
mov byte [ebp - 4], 7
call fcn.00402ac3
push eax
push str.ComputerID
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040b020
call fcn.0040a5a8
add esp, 0xc
lea eax, [ebp - 0x34]
mov ebx, 0x430ac0
push eax
mov ecx, ebx
call fcn.00408cd4
push dword [eax]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 8
push str.RealTargetDir
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040b020
call fcn.0040a271
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str._Glsetup2_Directorys
call fcn.004039a4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00404ce0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.004041f4
xor esi, esi
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], esi
jne 0x403e23
push 0x80004003
call fcn.00417ff8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
call fcn.004040e6
mov byte [ebp - 4], 0xb
mov edi, str.Name
cmp dword [ebp - 0x20], 0
jne 0x403e48
push 0x80004003
call fcn.00417ff8
mov ecx, dword [ebp - 0x20]
call fcn.00403b66
cmp esi, eax
jge 0x403f00
cmp dword [ebp - 0x20], 0
jne 0x403e68
push 0x80004003
call fcn.00417ff8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00403b31
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0040a6c8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403e8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.0040b020
lea eax, [ebp - 0x24]
push eax
call fcn.00409aec
add esp, 0xc
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
mov ecx, ebx
mov byte [ebp - 4], 0xc
push eax
call fcn.00408c35
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.00417b62
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.0040b020
call fcn.0040a271
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
inc esi
jmp 0x403e38
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str._Glsetup2_PackageInfo
call fcn.004039a4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.00404ce0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.004041f4
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0040a6c8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403f42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.OutputName
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.0040b020
lea eax, [ebp - 0x28]
push eax
call fcn.00409aec
add esp, 0xc
push 0x42c138
push str..exe
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::Replace
lea eax, [ebp - 0x30]
push str._GLDIR_
push eax
mov ecx, ebx
call fcn.00408c35
lea eax, [ebp - 0x30]
push str.Setup
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_operator
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0x11
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x403fb9
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push 0x42c12c
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
call fcn.004039a4
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x13
call fcn.00403a78
cmp dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x14
jne 0x404010
push 0x80004003
call fcn.00417ff8
sub esp, 0x10
lea esi, [ebp - 0x4c]
mov edi, esp
mov ebx, dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x108]
test eax, eax
jge 0x404038
push 0x42c1d8
push ebx
push eax
call fcn.00418006
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x13
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x404050
push eax
call fcn.00417ff8
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40405c
call fcn.00403a2b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x404091
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 7
test eax, eax
je 0x4040a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x4040b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x403c5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403c5c