Function at 0x412259
Capabilities:
Create directory

Disassembly:
mov eax, 0x4742e1
call fcn.004535cc
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.00409220
add esp, 0xc
cmp dword [esi + 0x14], edi
jne 0x412300
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.00415196
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
call fcn.00417da1
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.0041c7a4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 8
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0041c5d0
mov byte [ebp - 4], 9
push dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004146c6
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.00414362
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b964
push 0x47bad8
lea ecx, [ebp - 0x2c]
call fcn.004147e5
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4123ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4123ca
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0041c5d0
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ba16
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401436
jmp 0x412432
push dword [esi + 0xc]
lea ecx, [ebp - 0x184]
call fcn.0040b7a3
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 0x4123f5
mov eax, dword [eax + 4]
jmp 0x4123f8
add eax, 4
push eax
push str.create_directory_OK
mov ecx, edi
call fcn.0041c52f
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 0x412432
push dword [ebp - 0x184]
call fcn.00455077
pop ecx
push 0x47b440
lea ecx, [ebp - 0x24]
call fcn.0040b3e7
test eax, eax
je 0x41246b
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.0040bcbc
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
jmp 0x4124b1
push 0x47ad14
mov edi, 0x49fbac
mov ecx, edi
call fcn.0040b3e7
test eax, eax
je 0x41248b
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b964
jmp 0x4124c6
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.0040bcbc
pop ecx
pop ecx
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ba16
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401436
lea edi, [esi + 0xc]
push edi
lea ecx, [ebp - 0x2c]
call fcn.004092f2
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.004109d8
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.0042bc42
mov byte [ebp - 4], 0x1a
push dword [edi]
lea ecx, [ebp - 0x184]
call fcn.0040b7a3
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 0x41257f
mov eax, dword [eax + 4]
jmp 0x412582
add eax, 4
push eax
push str.DownloadComplete
mov ecx, 0x49faac
call fcn.0041c52f
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 0x4125bf
push dword [ebp - 0x184]
call fcn.00455077
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.0042b4c6
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.004477b5
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 0x412686
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 0x4126ac
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.0040b884
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x18], 1
push 0x47d768
push eax
call fcn.00413cfa
pop ecx
pop ecx
test al, al
je 0x41272a
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.0040b884
mov dword [ebp - 4], 0x24
mov dword [ebp - 0x18], 3
push 0x47d760
push eax
call fcn.00413cfa
pop ecx
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x41272d
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0x23
test byte [ebp - 0x18], 2
je 0x412746
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0x1c]
call fcn.00401436
mov dword [ebp - 4], 0x1d
test byte [ebp - 0x18], 1
je 0x41275f
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x20]
call fcn.00401436
cmp byte [ebp - 0x11], bl
je 0x41288b
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.INSTALL_NOT_EXE_NOT_MSI
call fcn.0040b9c7
mov byte [ebp - 4], 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x47ad14
call fcn.00415196
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.00415196
mov byte [ebp - 4], 0x28
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x47b440
call fcn.00415196
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.0041997c
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.00415196
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 0x413024
fld qword [0x47d718]
fcomp qword [esi + 0x20]
fnstsw ax
test ah, 0x41
jp 0x4128ce
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.0040b884
mov byte [ebp - 4], 0x2b
or dword [ebp - 0x18], 8
push 0x47d760
push eax
call fcn.0040b40b
pop ecx
pop ecx
test al, al
mov byte [ebp - 0x11], 1
jne 0x4128d1
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0x1d
test byte [ebp - 0x18], 8
je 0x4128ea
and dword [ebp - 0x18], 0xfffffff7
lea ecx, [ebp - 0x1c]
call fcn.00401436
cmp byte [ebp - 0x11], bl
mov dword [ebp - 0xa8], str.runas
jne 0x412903
mov dword [ebp - 0xa8], str.open
lea eax, [ebp - 0x58]
push eax
push 2
lea ecx, [ebp - 0xcc]
call fcn.0042b4c6
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.0042b4c6
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.0041509e
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.0040b9c7
mov byte [ebp - 4], 0x2e
push dword [ebp - 0x40]
lea ecx, [ebp - 0x184]
call fcn.0040b7a3
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 0x4129a0
mov eax, dword [eax + 4]
jmp 0x4129a3
add eax, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.0040b9c7
mov byte [ebp - 4], 0x31
mov byte [ebp - 4], 0x33
mov ecx, 0x49faac
call fcn.0041c697
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 0x4129f1
push dword [ebp - 0x184]
call fcn.00455077
pop ecx
cmp byte [ebp - 0x11], bl
je 0x412c44
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412bc5
cmp dword [esi], ebx
jne 0x412a1a
push 0x3e8
jmp 0x412a29
cmp dword [esi + 0x14], ebx
jne 0x412a24
push dword [esi + 0x18]
jmp 0x412a29
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 0x412b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x184]
call fcn.0040b7a3
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 0x412a79
mov eax, dword [eax + 4]
jmp 0x412a7c
add eax, 4
push eax
push str.Error_GetExitCodeProcess
mov ecx, 0x49faac
call fcn.0041c52f
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 0x412ab9
push dword [ebp - 0x184]
call fcn.00455077
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.00409220
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.0040b9c7
mov byte [ebp - 4], 0x37
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x47ad14
call fcn.00415196
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.00415196
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.0041997c
add esp, 0x18
jmp 0x412bb4
push 0x47c370
lea ecx, [ebp - 0x24]
call fcn.004147e5
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.00409220
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.0040b964
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x28]
call fcn.00401436
jmp 0x412c56
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push str.INSTALL_ERROR
call fcn.0040b9c7
mov byte [ebp - 4], 0x3e
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x47ad14
call fcn.00415196
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.00415196
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.0041997c
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 0x412d0b
cmp dword [esi + 0x14], 1
jne 0x412d53
push dword [esi]
push 0x47bd50
lea eax, [ebp - 0x34]
push eax
call fcn.00409220
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.00417da1
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 0x41280b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret