Function at 0x412251
Capabilities:
Create directory

Disassembly:
mov eax, 0x47427c
call fcn.0045357c
sub esp, 0x194
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push str.Worker
mov ecx, 0x49fb88
call fcn.004019b3
push 0x49fbb0
lea ecx, [ebp - 0x3c]
call fcn.0040181b
xor edi, edi
inc edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00401407
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
wait
lea ecx, [ebp - 0x24]
call fcn.00401407
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0xc]
push dword [esi]
push 0x47bd50
lea eax, [ebp - 0x24]
push eax
call fcn.0040921b
add esp, 0xc
cmp dword [esi + 0x14], edi
jne 0x4122f8
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x24]
push eax
call fcn.0040181b
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.start
call fcn.0041518e
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
call fcn.00417d97
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00401407
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x49faac
mov ecx, edi
call fcn.0041c79a
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 8
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0041c5c6
mov byte [ebp - 4], 9
push dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004146be
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
call fcn.00401436
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401436
push 0x47ad14
push 0x47badc
lea ecx, [ebp - 0x30]
call fcn.0041435a
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b95f
push 0x47bad8
lea ecx, [ebp - 0x2c]
call fcn.004147dd
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4123c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4123c2
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0041c5c6
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ba11
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401436
jmp 0x41242a
push dword [esi + 0xc]
lea ecx, [ebp - 0x184]
call fcn.0040b79e
mov byte [ebp - 4], 0xd
push dword [eax]
lea ecx, [ebp - 0x78]
call fcn.00401a8d
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x4123ed
mov eax, dword [eax + 4]
jmp 0x4123f0
add eax, 4
push eax
push str.create_directory_OK
mov ecx, edi
call fcn.0041c525
mov byte [ebp - 4], 0xd
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004014ab
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x41242a
push dword [ebp - 0x184]
call fcn.00455027
pop ecx
push 0x47b440
lea ecx, [ebp - 0x24]
call fcn.0040b3e2
test eax, eax
je 0x412463
lea eax, [esi + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040bcb4
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
jmp 0x4124a9
push 0x47ad14
mov edi, 0x49fbac
mov ecx, edi
call fcn.0040b3e2
test eax, eax
je 0x412483
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b95f
jmp 0x4124be
lea eax, [esi + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040bcb4
pop ecx
pop ecx
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ba11
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401436
lea edi, [esi + 0xc]
push edi
lea ecx, [ebp - 0x2c]
call fcn.004092ed
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x14
push dword [esi + 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x24]
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x15
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push edi
call fcn.0040181b
mov byte [ebp - 4], 0x16
push ebx
lea eax, [esi + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 0xc
call fcn.004109d0
add esp, 0x20
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xe8]
call fcn.00403ce8
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xcc]
call fcn.0042bc38
mov byte [ebp - 4], 0x1a
push dword [edi]
lea ecx, [ebp - 0x184]
call fcn.0040b79e
mov byte [ebp - 4], 0x1b
push dword [eax]
lea ecx, [ebp - 0x78]
call fcn.00401a8d
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x412577
mov eax, dword [eax + 4]
jmp 0x41257a
add eax, 4
push eax
push str.DownloadComplete
mov ecx, 0x49faac
call fcn.0041c525
mov byte [ebp - 4], 0x1b
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004014ab
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x4125b7
push dword [ebp - 0x184]
call fcn.00455027
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040181b
mov byte [ebp - 4], 0x1d
push ebx
lea ecx, [ebp - 0x100]
call fcn.0042b4bc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401921
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x47d32c
call fcn.00401a8d
mov byte [ebp - 4], 0x1e
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xe8]
push eax
call fcn.00404312
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040898a
add esp, 0x3c
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp - 0xcc]
call fcn.00406b40
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x74]
call fcn.004067e7
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xb4], 0x3c
mov byte [ebp - 4], 0x21
wait
call fcn.00447763
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xac], eax
wait
mov dword [ebp - 4], 0x1d
jmp 0x41267e
mov dword [ebp - 0xb0], 0x140
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xa0], eax
cmp dword [esi], ebx
je 0x4126a4
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], str.exefile
lea edi, [esi + 0xc]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
push 3
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040b87f
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x18], 1
push 0x47d768
push eax
call fcn.00413cf2
pop ecx
pop ecx
test al, al
je 0x412722
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
push 3
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040b87f
mov dword [ebp - 4], 0x24
mov dword [ebp - 0x18], 3
push 0x47d760
push eax
call fcn.00413cf2
pop ecx
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x412725
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0x23
test byte [ebp - 0x18], 2
je 0x41273e
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0x1c]
call fcn.00401436
mov dword [ebp - 4], 0x1d
test byte [ebp - 0x18], 1
je 0x412757
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x20]
call fcn.00401436
cmp byte [ebp - 0x11], bl
je 0x412883
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.INSTALL_NOT_EXE_NOT_MSI
call fcn.0040b9c2
mov byte [ebp - 4], 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x47ad14
call fcn.0041518e
mov byte [ebp - 4], 0x26
add esi, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
call fcn.0040181b
mov byte [ebp - 4], 0x27
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Not_exe_and_not_msi
call fcn.0041518e
mov byte [ebp - 4], 0x28
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x47b440
call fcn.0041518e
mov byte [ebp - 4], 0x29
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push edi
call fcn.0040181b
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0x1d
call fcn.00419972
add esp, 0x18
push 1
push ebx
push ebx
push dword [ebp - 0x40]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x47b384
mov ecx, dword [ebp + 8]
call fcn.0041518e
or dword [ebp - 0x18], 4
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x40]
call fcn.00401436
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xcc]
call fcn.004067e7
mov byte [ebp - 4], 0x18
push ebx
push 1
lea ecx, [ebp - 0xe8]
call fcn.004014ab
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x100]
call fcn.004067e7
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00401436
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00401436
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00401436
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00401436
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
call fcn.00401436
mov eax, dword [ebp + 8]
wait
jmp 0x41301c
fld qword [0x47d718]
fcomp qword [esi + 0x20]
fnstsw ax
test ah, 0x41
jp 0x4128c6
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
push 3
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040b87f
mov byte [ebp - 4], 0x2b
or dword [ebp - 0x18], 8
push 0x47d760
push eax
call fcn.0040b406
pop ecx
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x4128c9
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0x1d
test byte [ebp - 0x18], 8
je 0x4128e2
and dword [ebp - 0x18], 0xfffffff7
lea ecx, [ebp - 0x1c]
call fcn.00401436
cmp byte [ebp - 0x11], bl
mov dword [ebp - 0xa8], str.runas
jne 0x4128fb
mov dword [ebp - 0xa8], str.open
lea eax, [ebp - 0x58]
push eax
push 2
lea ecx, [ebp - 0xcc]
call fcn.0042b4bc
mov ecx, eax
call fcn.00403d54
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x50]
push eax
push 2
lea ecx, [ebp - 0xcc]
call fcn.0042b4bc
mov ecx, eax
call fcn.00403d32
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x1a0]
call fcn.00415096
mov byte [ebp - 4], 0x2c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x2d
wait
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x47a98b
call fcn.0040b9c2
mov byte [ebp - 4], 0x2e
push dword [ebp - 0x40]
lea ecx, [ebp - 0x184]
call fcn.0040b79e
mov byte [ebp - 4], 0x2f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x78]
call fcn.00401a8d
mov byte [ebp - 4], 0x30
cmp dword [eax + 0x18], 0x10
jb 0x412998
mov eax, dword [eax + 4]
jmp 0x41299b
add eax, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.0040b9c2
mov byte [ebp - 4], 0x31
mov byte [ebp - 4], 0x33
mov ecx, 0x49faac
call fcn.0041c68d
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 0x32
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004014ab
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x4129e9
push dword [ebp - 0x184]
call fcn.00455027
pop ecx
cmp byte [ebp - 0x11], bl
je 0x412c3c
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412bbd
cmp dword [esi], ebx
jne 0x412a12
push 0x3e8
jmp 0x412a21
cmp dword [esi + 0x14], ebx
jne 0x412a1c
push dword [esi + 0x18]
jmp 0x412a21
push 0x668a0
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x412b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x184]
call fcn.0040b79e
mov byte [ebp - 4], 0x34
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x78]
call fcn.00401a8d
mov byte [ebp - 4], 0x35
cmp dword [eax + 0x18], 0x10
jb 0x412a71
mov eax, dword [eax + 4]
jmp 0x412a74
add eax, 4
push eax
push str.Error_GetExitCodeProcess
mov ecx, 0x49faac
call fcn.0041c525
mov byte [ebp - 4], 0x34
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004014ab
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x412ab1
push dword [ebp - 0x184]
call fcn.00455027
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00401407
mov byte [ebp - 4], 0x36
push dword [ebp - 0x5c]
push 0x47bd50
lea eax, [ebp - 0x28]
push eax
call fcn.0040921b
add esp, 0xc
mov eax, dword [0x49fbb0]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040918b
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push str.INSTALL_ERROR
call fcn.0040b9c2
mov byte [ebp - 4], 0x37
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x47ad14
call fcn.0041518e
mov byte [ebp - 4], 0x38
lea eax, [esi + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x39
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x47d6a8
call fcn.0041518e
mov byte [ebp - 4], 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x28]
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x3b
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push edi
call fcn.0040181b
mov byte [ebp - 4], 0x3c
mov byte [ebp - 4], 0x36
call fcn.00419972
add esp, 0x18
jmp 0x412bac
push 0x47c370
lea ecx, [ebp - 0x24]
call fcn.004147dd
lea ecx, [ebp - 0x28]
call fcn.00401407
mov byte [ebp - 4], 0x3d
push dword [ebp - 0x5c]
push 0x47bd50
lea eax, [ebp - 0x28]
push eax
call fcn.0040921b
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040918b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b95f
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x28]
call fcn.00401436
jmp 0x412c4e
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push str.INSTALL_ERROR
call fcn.0040b9c2
mov byte [ebp - 4], 0x3e
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x47ad14
call fcn.0041518e
mov byte [ebp - 4], 0x3f
lea eax, [esi + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x40
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Error_ShellExecuteEx
call fcn.0041518e
mov byte [ebp - 4], 0x41
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x49fbb0
call fcn.0040181b
mov byte [ebp - 4], 0x42
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.0040181b
mov byte [ebp - 4], 0x43
mov byte [ebp - 4], 0x2d
call fcn.00419972
add esp, 0x18
mov eax, dword [0x49fbb0]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040918b
wait
mov dword [ebp - 4], 0x2c
jmp 0x412d03
cmp dword [esi + 0x14], 1
jne 0x412d4b
push dword [esi]
push 0x47bd50
lea eax, [ebp - 0x34]
push eax
call fcn.0040921b
pop ecx
pop ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea eax, [ebp - 0x34]
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x4b
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea eax, [ebp - 0x3c]
push eax
call fcn.0040181b
mov byte [ebp - 4], 0x4c
mov byte [ebp - 4], 0x2c
call fcn.00417d97
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040181b
or dword [ebp - 0x18], 4
mov byte [ebp - 4], 0x1d
push ebx
push 1
lea ecx, [ebp - 0x1a0]
call fcn.00408de5
jmp 0x412803
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret