Function at 0x462029
Capabilities:
Check if file exists
Write file 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 0x481e00
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x49f00c]
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
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x1c], 7
cmp eax, 3
ja case.default.0x461fef
jmp dword [eax*4 + 0x4625cc]
push 6
push str.LV_ERR
lea ecx, [ebp - 0x30]
call fcn.00404890
jmp 0x462051
push 6
push str.LV_WAR
lea ecx, [ebp - 0x30]
call fcn.00404890
jmp 0x462051
push 6
push str.LV_APP
lea ecx, [ebp - 0x30]
call fcn.00404890
jmp 0x462051
push 6
push str.LV_PRO
lea ecx, [ebp - 0x30]
call fcn.00404890
jmp 0x462051
push 0xad
push str.e:projects_bianqian_windows_uninstall_tool_kits_sharedlog.cpp
push 0x492108
call fcn.0046e951
add esp, 0xc
push 2
push 0x49210c
lea ecx, [ebp - 0x30]
call fcn.0040d380
cmp dword [edi + 0x28], 0
jne 0x462082
lea ecx, [edi + 0x18]
cmp ecx, edi
je 0x46209d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x462077
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00404890
jmp 0x46209d
mov eax, dword [edi + 0x10]
test eax, eax
je 0x46209d
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x462093
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [edi + 0x18]
call fcn.0040d380
lea eax, [edi + 0x4c]
lea edx, [edi + 0x34]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040dab0
add esp, 4
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae ecx, dword [ebp - 0x30]
push dword [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0040d380
xor ecx, ecx
lea esi, [edi + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4620f9
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x78]
push eax
call fcn.0040d380
mov dword [ebp - 0x38], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
push 2
movups xmm0, xmmword [eax]
push 0x48c290
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x48]
call fcn.0040d380
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x34]
movq qword [ebp - 0x80], xmm0
cmp edx, 8
jb 0x4621a7
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46219d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625b7
push edx
push ecx
call fcn.00463043
add esp, 8
mov edx, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x4621f5
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4621eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625bc
push edx
push ecx
call fcn.00463043
add esp, 8
mov edx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp edx, 8
jb 0x462249
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46223f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625c1
push edx
push ecx
call fcn.00463043
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4a3f08]
cmp eax, dword [ecx + 8]
jle 0x4622ba
push 0x4a3f08
call fcn.00462caf
add esp, 4
cmp dword [0x4a3f08], 0xffffffff
jne 0x4622ba
push 0x7d0
xor eax, eax
mov dword [0x4a3f1c], 0
push 0x4a3f28
mov dword [0x4a3f20], 7
mov word [0x4a3f0c], ax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x4828f0
call fcn.0046300b
add esp, 4
push 0x4a3f08
call fcn.00462c65
add esp, 4
mov eax, dword [edi + 0x64]
cmp eax, dword [0x4a3f24]
jg 0x4623ea
cmp dword [0x4a3f1c], 0
je 0x4623ea
cmp dword [ebp - 0x7c], 8
lea edx, [ebp - 0x90]
push dword [ebp - 0x80]
cmovae edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x60]
call fcn.0040d0d0
add esp, 4
push 0x4a3f28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4a3f20], 8
mov eax, 0x4a3f0c
cmovae eax, dword [0x4a3f0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xb0], 0
mov eax, 0x4a3f0c
setne byte [ebp - 0xa9]
cmp dword [0x4a3f20], 8
push 0x491fec
cmovae eax, dword [0x4a3f0c]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00469380
mov esi, dword [ebp - 0xb0]
add esp, 0xc
test esi, esi
jne 0x462397
push 0x4a3f28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x4623e7
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4623dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625c6
jmp 0x4623dd
cmp byte [ebp - 0xa9], 0
jne 0x4623bb
push esi
push 3
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], 0xbbef
push 1
push eax
mov byte [ebp - 0x16], 0xbf
call fcn.0047c753
add esp, 0x10
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
push esi
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
push 1
push eax
call fcn.0047c753
push esi
call fcn.00469624
add esp, 0x14
jmp 0x462360
push edx
push ecx
call fcn.00463043
add esp, 8
lea esi, [edi + 0x18]
mov edx, dword [ebp - 0x7c]
cmp edx, 8
jb 0x462427
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46241d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625c6
push edx
push ecx
call fcn.00463043
add esp, 8
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x462461
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462457
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625c6
push edx
push ecx
call fcn.00463043
add esp, 8
mov ecx, dword [edi + 0x60]
lea eax, [edi + 0x4c]
cmp ecx, 8
jb 0x4624a0
mov eax, dword [eax]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x462493
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625b7
mov eax, edx
push ecx
push eax
call fcn.00463043
add esp, 8
lea eax, [edi + 0x4c]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [edi + 0x34]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x4624f2
mov eax, dword [eax]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4624e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625b7
mov eax, edx
push ecx
push eax
call fcn.00463043
add esp, 8
lea eax, [edi + 0x34]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x46253e
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x462534
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625b7
mov eax, edx
push ecx
push eax
call fcn.00463043
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x462586
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46257c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4625b7
mov eax, edx
push ecx
push eax
call fcn.00463043
add esp, 8
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
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.00462ae1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00466e0f
call fcn.00466e0f
call fcn.00466e0f
call fcn.00466e0f
nop
neg byte [edi]
inc esi
add byte [edi], al
and byte [esi], al
sbb byte [eax], ah
inc esi
add byte [ecx], ch
and byte [esi], al
int3