Function at 0x40d2f0
Capabilities:
Check if file exists
Create directory
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8bfe
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x530b68], 0
je 0x40d952
mov esi, dword [0x532384]
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x40d39f
push 0x24
call fcn.00476a57
mov esi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0xb8], esi
xor eax, eax
mov dword [ebp - 0xb4], esi
mov dword [0x532384], esi
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
lea ecx, [ebp - 0x74]
call fcn.0046bf60
push 0xa
push str.yundianji
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040df20
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x40d433
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d429
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d970
push edx
push ecx
call fcn.00476a87
add esp, 8
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov edi, dword [esi + 0x1c]
xor edx, edx
mov eax, edi
sub eax, dword [esi + 0x18]
sar eax, 2
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x40d4c2
mov esi, dword [esi + 0x18]
mov edi, eax
nop dword [eax]
mov eax, dword [esi + edx*4]
cmp byte [eax], 0
je 0x40d4a0
mov eax, dword [eax + 0x64]
cmp eax, ecx
cmovg ecx, eax
inc edx
cmp edx, edi
jb 0x40d490
mov esi, dword [ebp - 0xb8]
mov edi, dword [esi + 0x1c]
test ecx, ecx
jle 0x40d4c2
imul eax, ecx, 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
sub edi, ecx
sar edi, 2
mov dword [ebp - 0xb8], 0
test edi, edi
je 0x40d914
xor edi, edi
nop
mov eax, dword [ecx + edi*4]
cmp byte [eax], 0
je 0x40d8f4
mov ecx, dword [ebp - 0x34]
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x40d97a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 1
cmovae eax, dword [ebp - 0x44]
push 0x518990
push ecx
push eax
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x5c]
call fcn.004065c0
mov byte [ebp - 4], 4
sub esp, 0x18
mov eax, dword [esi + 0x18]
mov ecx, esp
mov eax, dword [eax + edi*4]
add eax, 0x1c
push eax
call fcn.00409830
lea ecx, [ebp - 0x2c]
call fcn.0040cdf0
add esp, 0x18
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40d868
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040df20
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00406340
mov ecx, dword [esi + 0x18]
xor edx, edx
push 0
mov ecx, dword [ecx + edi*4]
add ecx, 0x1c
call fcn.00407c30
add esp, 0x1c
test al, al
je 0x40d868
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d868
xor eax, eax
mov dword [ebp - 0xec], 0
push eax
push 0x517e54
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
call fcn.004014e0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x5c]
xor eax, eax
mov ecx, edx
mov word [ebp - 0xd0], ax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
lea eax, [ecx + 2]
mov dword [ebp - 0xb4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d627
sub ecx, dword [ebp - 0xb4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.004014e0
mov byte [ebp - 4], 7
xorps xmm0, xmm0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xa8], 0
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
mov ecx, dword [eax + edi*4]
lea eax, [ebp - 0xd0]
add ecx, 0x4c
movlpd qword [ebp - 0x80], xmm0
cmp dword [ebp - 0xbc], 8
mov dword [ebp - 0x78], 0
cmovae eax, dword [ebp - 0xd0]
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0xb0], 0x3c
mov dword [ebp - 0xac], 0x440
mov dword [ebp - 0xa4], str.runas
mov dword [ebp - 0xa0], eax
jb 0x40d6bd
mov ecx, dword [ecx]
cmp dword [ebp - 0xd8], 8
lea eax, [ebp - 0xec]
mov dword [ebp - 0x9c], ecx
cmovae eax, dword [ebp - 0xec]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0x94], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40d706
push 0x493e0
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40d714
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xbc], 8
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x104], 0
cmovae edx, dword [ebp - 0xd0]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d754
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x104]
call fcn.004014e0
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 8
call fcn.0046c330
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xf0]
cmp edx, 8
jb 0x40d7c3
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d970
push edx
push ecx
call fcn.00476a87
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x40d807
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d970
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
cmp edx, 8
jb 0x40d868
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d85e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d970
push edx
push ecx
call fcn.00476a87
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40d8a6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d89c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d970
push edx
push ecx
call fcn.00476a87
add esp, 8
mov byte [ebp - 4], 3
xor eax, eax
mov edx, dword [ebp - 0x48]
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
cmp edx, 8
jb 0x40d8f4
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d970
push edx
push ecx
call fcn.00476a87
add esp, 8
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0xb8]
mov ecx, dword [esi + 0x18]
inc edi
sub eax, ecx
mov dword [ebp - 0xb8], edi
sar eax, 2
cmp edi, eax
jb 0x40d4e0
lea ecx, [ebp - 0x68]
call fcn.004063d0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40d952
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d948
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d975
push edx
push ecx
call fcn.00476a87
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004ca66d
call fcn.004ca66d
call fcn.00401410
int3