Function at 0x430630
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b69cc
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x534], eax
call fcn.0046d4f0
test eax, eax
je 0x4306ea
push 0
push str.CSetupApp::SpawnApp_n
push 0x6608b0
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x6608b0
mov dword [0x6607b0], ecx
add esp, 0xc
mov dword [0x6607b4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4306a6
mov edi, 0x6607b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4306b7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6607b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x43071e
mov eax, dword [ebp - 0x534]
push eax
push ebx
push str.pszExeName___s__pszCmdArg___s_n
push 0x6606b0
call fcn.00599ee3
add esp, 0x10
push 0x6606b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor esi, esi
mov dword [ebp - 0x53c], esi
call fcn.0049d320
cmp dword [ebp + 0x18], esi
je 0x4307a5
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x430750
mov edx, dword [str.UIUTEMP.EXE]
mov ecx, dword [0x5d26ec]
mov dword [eax], edx
mov edx, dword [0x5d26f0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x430790
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x430790
jmp 0x4307ba
lea edx, [ebp - 0x114]
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4307b0
test dword [ebp + 0x24], 0x8000
je 0x430acb
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4307e1
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x52c], eax
mov dword [ebp - 4], esi
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x430810
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x538], eax
mov byte [ebp - 4], 1
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x430840
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x528], eax
mov byte [ebp - 4], 2
cmp ebx, esi
jne 0x43085e
xor eax, eax
jmp 0x43086c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430863
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x538]
call fcn.004026b0
lea esp, [esp]
push 0
push 0
lea ecx, [ebp - 0x528]
push ecx
push 0xfffffffffffffffe
push ecx
mov ecx, esp
mov dword [ebp - 0x540], esp
push 0x5d26e4
call fcn.00403380
lea edx, [ebp - 0x538]
push edx
lea ecx, [ebp - 0x52d]
call fcn.0041c7b0
test eax, eax
je 0x430a56
mov ecx, dword [ebp - 0x528]
cmp dword [ecx - 0xc], 0
jl 0x4309e2
push 0x5d26e0
push ecx
call fcn.0059a963
mov ecx, dword [ebp - 0x528]
add esp, 8
test eax, eax
je 0x4309e2
sub eax, ecx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4309e2
push ebx
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0x528]
call fcn.004024f0
mov ecx, dword [eax]
mov esi, dword [ebp - 0x52c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
cmp eax, esi
je 0x430971
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x430961
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x430961
push eax
call fcn.004022e0
mov dword [ebp - 0x540], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x430950
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x540]
add ecx, 0x10
mov dword [ebp - 0x52c], ecx
jmp 0x430971
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x52c]
call fcn.004026b0
mov eax, dword [ebp - 0x544]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430997
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
push ebx
push 0
lea ecx, [ebp - 0x528]
call fcn.00407710
lea ecx, [ebp - 0x528]
call fcn.00408a80
lea ecx, [ebp - 0x528]
call fcn.00408a00
mov ecx, dword [ebp - 0x528]
push ecx
call fcn.0059ab03
add esp, 4
push 1
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.0049e3e0
add esp, 0xc
jmp 0x430880
mov esi, dword [ebp - 0x52c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x430a3d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x430a2d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x430a2d
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x430a22
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x52c], ebx
jmp 0x430a3d
mov edx, dword [ecx - 0xc]
push edx
push ecx
lea ecx, [ebp - 0x52c]
call fcn.004026b0
xor eax, eax
push 1
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.0049e3e0
add esp, 0xc
jmp 0x430880
mov eax, dword [ebp - 0x528]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430a7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x538]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430aa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x52c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430acb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0049cbe0
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x430cee
call fcn.0046d4f0
test eax, eax
je 0x430af8
push str.Trying_to_Spawn_with_ShellExecuteEx_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
test edi, edi
jne 0x430b1d
push 0x22
lea ecx, [ebp - 0x114]
push ecx
push 0x22
lea edx, [ebp - 0x524]
push str._c_s_c
push edx
call fcn.00599ee3
add esp, 0x14
jmp 0x430b33
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x114]
mov byte [ebp + eax - 0x524], cl
inc eax
test cl, cl
jne 0x430b20
push 0x3c
lea eax, [ebp - 0x590]
push 0
push eax
call fcn.00599fb0
add esp, 0xc
call fcn.0046d4f0
test eax, eax
je 0x430b79
lea ecx, [ebp - 0x524]
push ecx
push str.szExeName___s_n
push 0x6605b0
call fcn.00599ee3
add esp, 0xc
push 0x6605b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
mov ebx, dword [ebp - 0x534]
test eax, eax
je 0x430bac
push ebx
push str.pszCmdArg___s_n
push 0x6604b0
call fcn.00599ee3
add esp, 0xc
push 0x6604b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea eax, [ebp - 0x590]
lea edx, [ebp - 0x524]
push eax
mov dword [ebp - 0x590], 0x3c
mov dword [ebp - 0x588], 0
mov dword [ebp - 0x58c], 0x540
mov dword [ebp - 0x584], str.runas
mov dword [ebp - 0x580], edx
mov dword [ebp - 0x57c], ebx
mov dword [ebp - 0x574], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x430cb9
cmp dword [ebp + 0x10], 0
je 0x430caf
mov ecx, dword [ebp - 0x558]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x3e8
push esi
push ecx
call edi
cmp eax, 0x102
jne 0x430c53
mov ebx, dword [ebp + 0x1c]
lea ebx, [ebx]
test ebx, ebx
je 0x430c38
cmp esi, ebx
jae 0x430c82
mov edx, dword [ebp - 0x558]
push 0x3e8
push edx
add esi, 0x3e8
call edi
cmp eax, 0x102
je 0x430c30
call fcn.0046d4f0
test eax, eax
je 0x430c6d
push str.Child_process_signalled_success_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
jmp 0x430f1f
call fcn.0046d4f0
test eax, eax
je 0x430caf
push esi
push str.Time_Out____d_n
push 0x6603b0
call fcn.00599ee3
add esp, 0xc
push 0x6603b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov ebx, 1
jmp 0x430f1f
call fcn.0046d4f0
test eax, eax
je 0x430cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_ShellExecuteEx_:_GetLastError_____d_n
push 0x6602b0
call fcn.00599ee3
add esp, 0xc
push 0x6602b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
jmp 0x430cf4
mov ebx, dword [ebp - 0x534]
call fcn.0046d4f0
test eax, eax
je 0x430d0e
push str.Trying_to_Spawn_with_CreateProcess_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
test edi, edi
jne 0x430d59
test ebx, ebx
jne 0x430d37
push 0x22
lea eax, [ebp - 0x114]
push eax
push 0x22
lea ecx, [ebp - 0x524]
push str._c_s_c
push ecx
call fcn.00599ee3
add esp, 0x14
jmp 0x430d96
push ebx
push 0x22
lea edx, [ebp - 0x114]
push edx
push 0x22
lea eax, [ebp - 0x524]
push str._c_s_c__s
push eax
call fcn.00599ee3
add esp, 0x18
jmp 0x430d96
test ebx, ebx
jne 0x430d7a
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x524]
push 0x5cf00c
push edx
call fcn.00599ee3
add esp, 0xc
jmp 0x430d96
push ebx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x524]
push str._s__s
push ecx
call fcn.00599ee3
add esp, 0x10
push 0x44
lea edx, [ebp - 0x598]
push 0
push edx
call fcn.00599fb0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x598], 0x44
mov dword [ebp - 0x554], eax
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x56c], 1
mov word [ebp - 0x568], si
call fcn.0046d4f0
test eax, eax
je 0x430e11
lea eax, [ebp - 0x524]
push eax
push str.szCmdLine___s_n
push 0x6601b0
call fcn.00599ee3
add esp, 0xc
push 0x6601b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x430e23
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x554]
push ecx
lea edx, [ebp - 0x598]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x524]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x430f9c
test esi, esi
je 0x430ef7
mov ecx, dword [ebp - 0x554]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x3e8
push esi
push ecx
call edi
cmp eax, 0x102
jne 0x430ea3
mov ebx, dword [ebp + 0x1c]
jmp 0x430e80
test ebx, ebx
je 0x430e88
cmp esi, ebx
jae 0x430eca
mov edx, dword [ebp - 0x554]
push 0x3e8
push edx
add esi, 0x3e8
call edi
cmp eax, 0x102
je 0x430e80
call fcn.0046d4f0
test eax, eax
je 0x430ebd
push str.Child_process_signalled_success_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x430ef7
call fcn.0046d4f0
test eax, eax
je 0x430ef7
push esi
push str.Time_Out____d_n
push 0x6600b0
call fcn.00599ee3
add esp, 0xc
push 0x6600b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [ebp - 0x554]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x550]
push ecx
call esi
mov dword [ebp - 0x53c], 1
mov ebx, dword [ebp - 0x53c]
test dword [ebp + 0x24], 0x4000
je 0x430fa2
call fcn.0046d4f0
test eax, eax
je 0x430f42
push str.Waiting_for_KUIU.EXE_to_exit.._n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
xor esi, esi
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x544], esp
push str.KUIU.EXE
call fcn.00403380
lea ecx, [ebp - 0x52d]
call fcn.0042e880
test eax, eax
je 0x430fa2
push 0x1f4
call edi
inc esi
cmp esi, 0xa
jbe 0x430f51
call fcn.0046d4f0
test eax, eax
je 0x430fa2
push str.Timeout:_IsProcessRunning_KUIU.EXE__n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
jmp 0x430fa2
mov ebx, dword [ebp - 0x53c]
call fcn.0046d4f0
test eax, eax
je 0x431024
push ebx
push str.CSetupApp::SpawnApp_:_bRetVal___d_n
push 0x65ffb0
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x65feb4], eax
mov eax, 0x65ffb0
add esp, 0xc
mov dword [0x65feb0], edx
mov ecx, eax
jmp 0x430fe0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x430fe0
mov edi, 0x65feb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x430ff1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x65feb0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0x20