Function at 0x4107c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4d2f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], esi
mov dword [0x4d44e0], ecx
call fcn.004126b0
mov edi, eax
mov eax, 0x496674
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x3c], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410810
sub eax, edx
push eax
push 0x496674
lea ecx, [ebp - 0x3c]
call fcn.00402ab0
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
mov ebx, 1
call fcn.00412c20
test al, al
jne 0x41087f
mov byte [ebp - 0x20], al
mov eax, str.vmodule
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410850
sub eax, edx
push eax
push str.vmodule
lea ecx, [ebp - 0x20]
call fcn.00402ab0
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov ebx, 3
call fcn.00412c20
mov byte [ebp - 0x75], 0
test al, al
je 0x410883
mov byte [ebp - 0x75], 1
test bl, 2
je 0x4108ab
and ebx, 0xfffffffd
cmp dword [ebp - 0xc], 0x10
jb 0x41089d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046f1de
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x20], 0
test bl, 1
je 0x4108c5
and ebx, 0xfffffffe
cmp dword [ebp - 0x28], 0x10
jb 0x4108c5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0046f1de
add esp, 4
cmp byte [ebp - 0x75], 0
je 0x410a6b
cmp dword [0x4d44e8], esi
je 0x410902
push 4
push 0x16a
push str.logging.cc
lea ecx, [ebp - 0x130]
or ebx, 4
call fcn.0040fd60
add eax, 8
push str.Check_failed:__g_vlog_info_prev.
push eax
call fcn.00402850
add esp, 8
test bl, 4
je 0x410915
lea ecx, [ebp - 0x130]
and ebx, 0xfffffffb
call fcn.00410380
mov eax, dword [0x4d44e4]
push 0x14
mov dword [0x4d44e8], eax
call fcn.0046f8fb
mov edi, eax
add esp, 4
cmp edi, esi
je 0x4109d6
mov eax, str.vmodule
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410950
sub eax, esi
push eax
push str.vmodule
lea ecx, [ebp - 0x3c]
call fcn.00402ab0
mov eax, 0x496674
or ebx, 8
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410984
sub eax, esi
push eax
push 0x496674
lea ecx, [ebp - 0x20]
call fcn.00402ab0
mov esi, dword [ebp - 0x80]
push 0x4d44ec
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x74]
push edx
mov ecx, esi
or ebx, 0x70
call fcn.00413050
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, esi
call fcn.00413050
push eax
mov ecx, edi
call fcn.0041c720
mov dword [0x4d44e4], eax
xor esi, esi
jmp 0x4109dc
mov dword [0x4d44e4], esi
test bl, 0x40
je 0x410a07
and ebx, 0xffffffbf
cmp dword [ebp - 0x44], 0x10
jb 0x4109f6
mov edx, dword [ebp - 0x58]
push edx
call fcn.0046f1de
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
jmp 0x410a0c
mov edi, 0xf
test bl, 0x20
je 0x410a30
and ebx, 0xffffffdf
cmp dword [ebp - 0x60], 0x10
jb 0x410a26
mov eax, dword [ebp - 0x74]
push eax
call fcn.0046f1de
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], esi
mov byte [ebp - 0x74], 0
test bl, 0x10
je 0x410a54
and ebx, 0xffffffef
cmp dword [ebp - 0xc], 0x10
jb 0x410a4a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046f1de
add esp, 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x20], 0
test bl, 8
je 0x410a6b
cmp dword [ebp - 0x28], 0x10
jb 0x410a6b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0046f1de
add esp, 4
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp + 0x10]
push edi
push eax
call fcn.00410150
add esp, 8
cmp dword [0x4d4510], esi
jne 0x410a94
mov ecx, dword [0x4d4514]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x410a9f
mov ecx, dword [0x4d450c]
call fcn.00413e80
mov eax, dword [0x4d44f4]
cmp eax, esi
je 0x410ab5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4d44f4], esi
mov eax, dword [ebp + 0xc]
mov dword [section..data], eax
cmp eax, esi
je 0x410b86
cmp eax, 2
je 0x410b86
mov ecx, dword [0x4d44f0]
cmp ecx, esi
jne 0x410b01
push 0x1c
call fcn.0046f8fb
add esp, 4
cmp eax, esi
je 0x410af9
xor edx, edx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], esi
mov word [eax], dx
mov ecx, eax
jmp 0x410afb
xor ecx, ecx
mov dword [0x4d44f0], ecx
mov eax, edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410b06
sub eax, esi
sar eax, 1
push eax
mov eax, edi
push eax
call fcn.004022c0
cmp dword [ebp + 0x14], 0
jne 0x410b38
mov eax, dword [0x4d44f0]
cmp dword [eax + 0x14], 8
jb 0x410b31
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004102c0
cmp dword [0x4d4510], 0
mov bl, al
jne 0x410b68
mov ecx, dword [0x4d4514]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4d450c]
call fcn.00413e90
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
cmp dword [0x4d4510], esi
jne 0x410bae
mov edx, dword [0x4d4514]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fb84
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4d450c]
call fcn.00413e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0046fb84
mov esp, ebp
pop ebp
ret