Function at 0x411745
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0xe8
push 1
push dword [0x42f12c]
call fcn.0041171a
pop ecx
test al, al
pop ecx
je 0x41176a
push dword [0x42f12c]
call fcn.004116eb
pop ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push 3
push ebx
mov edi, closesocket
push 3
push edi
push dword [0x42f12c]
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4117ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x42f12c]
call fcn.004116eb
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [0x42f0d8]
call fcn.0041171a
pop ecx
test al, al
pop ecx
je 0x4117d5
push dword [0x42f0d8]
call fcn.004116eb
pop ecx
push ebx
push ebp
push 3
push ebx
push 2
push edi
push dword [0x42f0d8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x411801
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x42f0d8]
call fcn.004116eb
pop ecx
jmp 0x41180b
mov eax, dword [esp + 0xfc]
mov byte [eax], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [esp + 0x14]
push eax
mov ebp, 0xf003f
push ebx
push ebp
push ebx
push ebx
push ebx
push str.SoftwareSoftwrapVer1.0
push closesocket
call edi
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x411887
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
cmp eax, 5
je 0x41187a
cmp eax, 6
je 0x41187a
push eax
push str.Error__ld_accessing_Softwrap_defaults_registry._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
jmp 0x411880
push eax
push str.Error__ld_accessing_Softwrap_defaults_registry._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_CURRENT_USERSoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._nIf_the_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
push ebx
push ebx
push ebx
push str.SoftwareSoftwrap
push closesocket
call edi
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4118ef
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
cmp eax, 5
je 0x4118e7
cmp eax, 6
je 0x4118e7
push eax
push str.Error__ld_creating_Softwrap_registry_path._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
jmp 0x4118fa
push eax
push str.Error__ld_creating_Softwrap_registry_path._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_LOCAL_MACHINESoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._nIf_the_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
jmp 0x4118de
mov eax, dword [esp + 0xfc]
mov byte [eax + 1], 1
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42de30]
lea eax, [esp + 0x84]
push eax
call fcn.00418030
lea eax, [esp + 0x88]
push str.SoftwrapLicense
push eax
call fcn.00418040
add esp, 0x10
lea eax, [esp + 0x80]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41196b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41196b
cmp eax, 5
je 0x41195e
cmp eax, 6
je 0x41195e
push eax
push str.Error__ld_whilst_accessing_the_directory_C:Program_FilesSoftwrapLicense._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
jmp 0x411964
push eax
push str.Error__ld_accessing_Softwrap_global_license_file._nTo_run_this_program__ask_your_administrator_to_create_a_directory_called__nC:Program_FilesSoftwrapLicense_and_to_give_you_full_access_to_it._nUntil_then__Softwrap_cannot_continue._If_the_problem_persists__please_contact_nSoftwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [0x42de58]
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x411997
push dword [0x42de58]
call fcn.004116eb
pop ecx
mov eax, dword [esp + 0xfc]
push dword [esp + 0x14]
mov byte [eax + 5], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
push ebx
push ebx
push ebx
push dword [0x42f0e4]
push closesocket
call edi
mov edi, eax
cmp edi, ebx
je 0x411a13
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 5
je 0x411a0b
cmp edi, 6
je 0x411a0b
push edi
push str.Error__ld_creating_Softwrap_registry_path._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
jmp 0x411a34
push edi
push str.Error__ld_creating_Softwrap_registry_path._nTo_run_this_program__ask_your_administrator_to_give_you_full_registry_access_to_nHKEY_CLASSES_ROOT_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._If_the_problem_npersists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
jmp 0x411a02
mov eax, dword [esp + 0xfc]
push dword [esp + 0x10]
mov byte [eax + 2], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xffffffffffffffff
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x400
call fcn.004179b4
pop ecx
mov edi, eax
lea eax, [esp + 0x1c]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x411a72
mov eax, dword [esp + 0xfc]
mov byte [eax + 3], bl
mov byte [eax + 4], bl
jmp 0x411b08
push dword [0x42f0dc]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x20]
push eax
push str._s_s
push edi
call ebp
add esp, 0x10
push ebx
push 2
push 4
push ebx
push ebx
push 0xc0000000
push edi
call esi
cmp eax, 0xffffffff
jne 0x411aae
mov eax, dword [esp + 0xfc]
mov byte [eax + 3], bl
jmp 0x411ac0
mov ecx, dword [esp + 0xfc]
push eax
mov byte [ecx + 3], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x42f0e0]
lea eax, [esp + 0x20]
push eax
push str._s_s
push edi
call ebp
add esp, 0x10
push ebx
push 2
push 4
push ebx
push ebx
push 0xc0000000
push edi
call esi
cmp eax, 0xffffffff
jne 0x411af6
mov eax, dword [esp + 0xfc]
jmp 0x411a6a
mov ecx, dword [esp + 0xfc]
push eax
mov byte [ecx + 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call fcn.00417985
pop ecx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xe8
ret