Function at 0x410850
Capabilities:
Check for software breakpoints
Check if file exists
Create process on windows
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x447087
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x198]
mov edi, ecx
push 0x103
lea eax, [esp + 0x81]
push 0
push eax
mov byte [esp + 0x88], 0
call fcn.00434290
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp ebp, 0xc7
jne 0x410909
lea eax, [esp + 0x7c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4108d0
mov edx, dword [str.BOL_HaiTai_KEY.exe]
mov ecx, dword [0x44fda0]
mov dword [eax], edx
mov edx, dword [0x44fda4]
mov dword [eax + 4], ecx
mov ecx, dword [0x44fda8]
mov dword [eax + 8], edx
mov edx, dword [0x44fdac]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x4109a1
cmp ebp, 0xc6
jne 0x410957
lea eax, [esp + 0x7c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410916
mov ecx, dword [str.BOL_Jansh_KEY.exe]
mov edx, dword [0x44fd58]
mov dword [eax], ecx
mov ecx, dword [0x44fd5c]
mov dword [eax + 4], edx
mov edx, dword [0x44fd60]
mov dword [eax + 8], ecx
mov cx, word [0x44fd64]
mov dword [eax + 0xc], edx
mov dl, byte [0x44fd66]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
jmp 0x4109a1
cmp ebp, 0xcc
jne 0x4109a1
lea eax, [esp + 0x7c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410964
mov ecx, dword [str.BOL_CCFCCBSetup.exe]
mov edx, dword [0x44fe28]
mov dword [eax], ecx
mov ecx, dword [0x44fe2c]
mov dword [eax + 4], edx
mov edx, dword [0x44fe30]
mov dword [eax + 8], ecx
mov ecx, dword [0x44fe34]
mov dword [eax + 0xc], edx
mov dl, byte [0x44fe38]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
call fcn.00412914
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4109bb
push 0x80004005
call fcn.004025c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x19c]
push ecx
lea edx, [esp + 0x18]
push 0x44de08
push edx
mov dword [esp + 0x19c], 0
call fcn.00402100
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x410a0e
lea ecx, [esp + 0x7c]
push ecx
call ebx
lea edx, [esp + 0x7c]
push edx
call esi
test eax, eax
jne 0x410a91
lea eax, [esp + 0x7c]
push eax
push ebp
call fcn.004119b0
test al, al
jne 0x410a91
mov esi, dword [esp + 0x14]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebx, esp
push esi
call fcn.004025f0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x198], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push str.REPAIR0
call fcn.00401fc0
mov byte [esp + 0x198], 0
call fcn.00410e00
mov dword [esp + 0x190], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410a8a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
jmp 0x410ca8
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00434290
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x9c]
push eax
push 0
mov dword [esp + 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x410b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebx, esp
push esi
call fcn.004025f0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x198], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push str.REPAIR0
call fcn.00401fc0
mov byte [esp + 0x198], 0
call fcn.00410e00
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.REPAIR0
call fcn.00401fc0
call fcn.00410ce0
jmp 0x410a66
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x410c07
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov esi, dword [esp + 0x14]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push esi
call fcn.004025f0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x198], 3
mov ecx, esp
mov dword [esp + 0x24], esp
push str.REPAIR0
call fcn.00401fc0
mov byte [esp + 0x198], 0
call fcn.00410e00
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.REPAIR0
call fcn.00401fc0
call fcn.00410ce0
lea edx, [esp + 0x7c]
push edx
call ebx
mov dword [esp + 0x190], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410a8a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
jmp 0x410ca8
cmp dword [esp + 0x20], 4
jne 0x410c71
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402660
push ecx
mov byte [esp + 0x198], 4
mov ecx, esp
mov dword [esp + 0x24], esp
push str.REPAIR0
call fcn.00401fc0
mov byte [esp + 0x198], 0
call fcn.00410e00
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.REPAIR0
call fcn.00401fc0
call fcn.00410ce0
lea eax, [esp + 0x7c]
push eax
call ebx
lea ecx, [esp + 0x14]
call fcn.004026a0
xor eax, eax
jmp 0x410ca8
lea ecx, [esp + 0x7c]
push ecx
call ebx
mov dword [esp + 0x190], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410ca3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.00430bec
add esp, 0x180
ret 8