Function at 0x4030b0
Capabilities:
Check if file exists
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 0x53ac58
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x308
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x310], edi
cmp dword [ebx + 8], 0
je 0x4031b3
mov dword [edi], 0
lea eax, [ebp - 0x250]
push eax
call fcn.004280c0
add esp, 4
push 0xf
push 0x56761c
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004048a0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x224]
test eax, eax
sete byte [ebp - 0x2fd]
cmp edx, 8
jb 0x4031ce
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
jmp 0x4031c4
cmp dword [edi], 0
je 0x403109
lea eax, [edi + 0x7c]
jmp 0x403b91
push edx
push ecx
call fcn.004b9f4f
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], 0xffffffff
call fcn.004066a0
cmp byte [ebp - 0x2fd], 0
je 0x4033ae
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004d90f0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.KafanInputSetting.exe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x5676d0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.00406ee0
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4032a0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004048a0
push 0x16
push 0x5676d4
lea ecx, [ebp - 0x238]
call fcn.004048a0
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 0x44
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x2c4], xmm0
movlpd qword [ebp - 0x2bc], xmm0
movlpd qword [ebp - 0x2b4], xmm0
movlpd qword [ebp - 0x2ac], xmm0
movlpd qword [ebp - 0x2a4], xmm0
movlpd qword [ebp - 0x29c], xmm0
movlpd qword [ebp - 0x294], xmm0
movlpd qword [ebp - 0x28c], xmm0
movups xmmword [ebp - 0x260], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403419
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4033ae
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4033a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb6
push edx
push ecx
call fcn.004b9f4f
add esp, 8
call dword [sym.imp.rime.dll_rime_get_api]
mov dword [ebp - 0x308], eax
lea esi, [edi + 0x7c]
mov dword [ebp - 0x304], esi
test eax, eax
je 0x403b8f
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2fc], 0
push ecx
mov ecx, dword [eax + 0x140]
push str.skin_list
call ecx
add esp, 8
test eax, eax
je 0x403b8f
mov edi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x40348a
mov ecx, esi
call fcn.00402f00
add esi, 0x78
cmp esi, edi
jne 0x403401
mov eax, dword [ebp - 0x304]
mov esi, dword [eax]
jmp 0x403490
push 0x1388
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x260]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x25c]
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4033ae
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4033a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb6
jmp 0x4033a4
mov eax, dword [ebp - 0x304]
mov edi, dword [ebp - 0x308]
mov dword [eax + 4], esi
lea eax, [ebp - 0x2fc]
push str.skinlist
push eax
mov eax, dword [edi + 0x114]
call eax
xor edx, edx
mov dword [ebp - 0x314], eax
add esp, 8
mov dword [ebp - 0x30c], edx
test eax, eax
je 0x403b69
nop word [eax + eax]
lea ecx, [ebp - 0x2f8]
call fcn.00402e90
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 2
call fcn.004059d0
push 0xa
sub esp, 8
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00405d00
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x258], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x224]
cmp edx, 0x10
jb 0x403563
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403559
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
push str._name
lea edx, [ebp - 0x268]
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
call fcn.00404a60
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x4035a3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2fc]
push eax
mov eax, dword [edi + 0xb0]
call eax
mov byte [ebp - 4], 5
add esp, 8
mov edx, dword [ebp - 0x23c]
mov esi, eax
cmp edx, 0x10
jb 0x4035f6
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4035ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
test esi, esi
je 0x403b00
push 0x2000
push 0
push 0x596338
call fcn.004d90f0
add esp, 0xc
push 0xfff
push 0x596338
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x596338
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403650
sub ecx, edx
sar ecx, 1
push ecx
push 0x596338
lea ecx, [ebp - 0x2c8]
call fcn.00406ee0
push str._guid
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x250]
call fcn.00404a60
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x403695
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2fc]
push eax
mov eax, dword [edi + 0xb0]
call eax
mov byte [ebp - 4], 5
add esp, 8
mov edx, dword [ebp - 0x23c]
mov esi, eax
cmp edx, 0x10
jb 0x4036e8
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4036de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
test esi, esi
je 0x403b00
push 0x2000
push 0
push 0x596338
call fcn.004d90f0
add esp, 0xc
push 0xfff
push 0x596338
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x596338
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403741
sub ecx, edx
sar ecx, 1
push ecx
push 0x596338
lea ecx, [ebp - 0x2f8]
call fcn.00406ee0
push str._path
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x250]
call fcn.00404a60
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x403786
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2fc]
push eax
mov eax, dword [edi + 0xb0]
call eax
mov byte [ebp - 4], 5
add esp, 8
mov edx, dword [ebp - 0x23c]
mov esi, eax
cmp edx, 0x10
jb 0x4037d9
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
test esi, esi
je 0x403b00
push 0x2000
push 0
push 0x596338
call fcn.004d90f0
add esp, 0xc
push 0xfff
push 0x596338
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x596338
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403832
sub ecx, edx
sar ecx, 1
push ecx
push 0x596338
lea ecx, [ebp - 0x2b0]
call fcn.00406ee0
push str._time
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x250]
call fcn.00404a60
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x403877
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2fc]
push eax
mov eax, dword [edi + 0xb0]
call eax
mov byte [ebp - 4], 5
add esp, 8
mov edx, dword [ebp - 0x23c]
mov esi, eax
cmp edx, 0x10
jb 0x4038ca
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4038c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
test esi, esi
je 0x403b00
push 0x2000
push 0
push 0x596338
call fcn.004d90f0
add esp, 0xc
push 0xfff
push 0x596338
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x596338
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403923
sub ecx, edx
sar ecx, 1
push ecx
push 0x596338
lea ecx, [ebp - 0x2e0]
call fcn.00406ee0
push str._type
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x280]
call fcn.00404a60
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x403968
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2fc]
push eax
mov eax, dword [edi + 0xb0]
call eax
mov byte [ebp - 4], 5
add esp, 8
mov edx, dword [ebp - 0x26c]
mov esi, eax
cmp edx, 0x10
jb 0x4039bb
mov ecx, dword [ebp - 0x280]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4039b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
test esi, esi
je 0x403b00
push 0x2000
push 0
push 0x596338
call fcn.004d90f0
add esp, 0xc
push 0xfff
push 0x596338
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0x596338
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a14
sub ecx, edx
sar ecx, 1
push ecx
push 0x596338
lea ecx, [ebp - 0x298]
call fcn.00406ee0
mov edi, dword [ebp - 0x310]
lea eax, [ebp - 0x2f8]
push eax
mov esi, dword [edi + 0x80]
cmp esi, dword [edi + 0x84]
je 0x403ab1
mov ecx, esi
mov dword [ebp - 0x318], esi
call fcn.00404610
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0x18]
call fcn.00404610
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [esi + 0x30]
call fcn.00404610
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [esi + 0x48]
call fcn.00404610
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [esi + 0x60]
call fcn.00404610
add dword [edi + 0x80], 0x78
jmp 0x403aba
push esi
lea ecx, [edi + 0x7c]
call fcn.00404c50
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x403af8
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403aee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov edi, dword [ebp - 0x308]
jmp 0x403b3e
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x403b3e
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403b34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bb1
push edx
push ecx
call fcn.004b9f4f
add esp, 8
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f00
mov edx, dword [ebp - 0x30c]
inc edx
mov dword [ebp - 0x30c], edx
cmp edx, dword [ebp - 0x314]
jb 0x4034d0
mov ecx, dword [edi + 0x9c]
lea eax, [ebp - 0x2fc]
push eax
call ecx
mov eax, dword [ebp - 0x310]
add esp, 4
mov dword [eax], 1
mov eax, dword [ebp - 0x304]
jmp 0x403b91
mov eax, esi
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.004ba2f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004e4b18
call fcn.004e4b18
int3