Function at 0x409e90
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cc63
mov eax, dword fs:[0]
push eax
sub esp, 0xc5c
mov eax, dword [0x43a00c]
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 esi, ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x40a00b
cmp dword [esi + 0x10], 0
je 0x40a00b
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmovae eax, dword [ebp + 8]
push eax
call edi
test eax, eax
je 0x40a00b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x409f01
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x40a00b
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.proxyopenssl.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409f6c
lea ebx, [eax + 1]
jmp 0x40a00d
lea eax, [ebp - 0x628]
push eax
push 0
push 0x436508
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40a044
cmp dword [0x43ba80], eax
je 0x40a00b
lea ecx, [ebp - 0xc58]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x409fac
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x123
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tgen_szTempFile_failed_error:_u_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0xc44]
add esp, 0x18
cmp edx, 0x10
jb 0x40a00b
mov ecx, dword [ebp - 0xc58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a001
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3f0
push edx
push ecx
call fcn.0040f6ee
add esp, 8
xor ebx, ebx
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40a3d2
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3f5
jmp 0x40a3c8
push 0x618
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004136c0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40a062
mov esi, dword [esi]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x628]
push 0x457
push 0x457
push ecx
push esi
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.pkcs12__export__clcerts__in___S___inkey___S___out___s___passin_pass:_d__passout_pass:_d
lea eax, [ebp - 0xc40]
push 0x30c
push eax
call fcn.0040ce80
mov esi, eax
add esp, 0x20
test esi, esi
jns 0x40a11b
cmp dword [0x43ba80], 0
je 0x40a00b
lea ecx, [ebp - 0xc58]
call fcn.004011a0
cmp dword [eax + 0x14], 0x10
jb 0x40a0bf
mov eax, dword [eax]
push esi
push 0x133
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tget_cmdline_openssl_pkcs12_with_error_0x_x_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0xc44]
add esp, 0x18
cmp edx, 0x10
jb 0x40a00b
mov ecx, dword [ebp - 0xc58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a001
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3fa
jmp 0x40a001
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0xc5c], esp
push 4
push str.open
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.004030b0
sub esp, 0x18
mov byte [ebp - 4], 1
mov edx, esp
mov dword [ebp - 0xc60], esp
xor eax, eax
lea ecx, [ebp - 0xc40]
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a170
sub ecx, esi
lea eax, [ebp - 0xc40]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004030b0
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
lea ecx, [ebp - 0x218]
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a1b3
sub ecx, esi
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004030b0
xor ecx, ecx
mov byte [ebp - 4], 0
call fcn.00408c30
add esp, 0x48
mov edi, eax
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a28e
cmp dword [0x43ba80], 0
je 0x40a275
lea ecx, [ebp - 0xc58]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40a215
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x13e
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_twait_hProcess_failed_dwWaitRet:_u__error:_u_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0xc44]
add esp, 0x1c
cmp edx, 0x10
jb 0x40a275
mov ecx, dword [ebp - 0xc58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a26b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a3ff
push edx
push ecx
call fcn.0040f6ee
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a00b
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc5c], 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40a33b
cmp dword [0x43ba80], eax
je 0x40a3b1
lea ecx, [ebp - 0xc58]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40a2dc
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x148
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push esi
push str._ERROR___s__s:_d_tGetExitCodeProcess_failed__error:_u_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0xc44]
add esp, 0x18
cmp edx, 0x10
jb 0x40a3b1
mov ecx, dword [ebp - 0xc58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a404
jmp 0x40a3a7
cmp dword [0x43ba80], 0
je 0x40a3b1
lea ecx, [ebp - 0xc58]
call fcn.004011a0
cmp dword [eax + 0x14], 0x10
jb 0x40a357
mov eax, dword [eax]
push dword [ebp - 0xc5c]
push 0x14c
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCaByodProxyInstCa.cpp
push eax
push str._ERROR___s__s:_d_tGetExitCodeProcess_success__dwExitCode_u_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0xc44]
add esp, 0x18
cmp edx, 0x10
jb 0x40a3b1
mov ecx, dword [ebp - 0xc58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a409
push edx
push ecx
call fcn.0040f6ee
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0xc5c], ebx
sete bl
jmp 0x40a00d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
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.0040f469
mov esp, ebp
pop ebp
ret
call fcn.00415003
call fcn.00415003
call fcn.00415003
call fcn.00415003
call fcn.00415003
call fcn.00415003
int3