Function at 0x40be40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4d04a4]
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 [0x4d22a8], ecx
call fcn.0040e7c0
mov edi, eax
mov eax, 0x49233c
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 0x40be90
sub eax, edx
push eax
push 0x49233c
lea ecx, [ebp - 0x3c]
call fcn.00402a70
lea edx, [ebp - 0x3c]
push edx
mov ecx, edi
mov ebx, 1
call fcn.0040ee30
test al, al
jne 0x40beff
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 0x40bed0
sub eax, edx
push eax
push str.vmodule
lea ecx, [ebp - 0x20]
call fcn.00402a70
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov ebx, 3
call fcn.0040ee30
mov byte [ebp - 0x75], 0
test al, al
je 0x40bf03
mov byte [ebp - 0x75], 1
test bl, 2
je 0x40bf2b
and ebx, 0xfffffffd
cmp dword [ebp - 0xc], 0x10
jb 0x40bf1d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00426825
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x20], 0
test bl, 1
je 0x40bf45
and ebx, 0xfffffffe
cmp dword [ebp - 0x28], 0x10
jb 0x40bf45
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00426825
add esp, 4
cmp byte [ebp - 0x75], 0
je 0x40c0eb
cmp dword [0x4d22b0], esi
je 0x40bf82
push 4
push 0x16a
push str.logging.cc
lea ecx, [ebp - 0x130]
or ebx, 4
call fcn.0040b170
add eax, 8
push str.Check_failed:__g_vlog_info_prev.
push eax
call fcn.00402810
add esp, 8
test bl, 4
je 0x40bf95
lea ecx, [ebp - 0x130]
and ebx, 0xfffffffb
call fcn.0040b9e0
mov eax, dword [0x4d22ac]
push 0x14
mov dword [0x4d22b0], eax
call fcn.00426f3b
mov edi, eax
add esp, 4
cmp edi, esi
je 0x40c056
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 0x40bfd0
sub eax, esi
push eax
push str.vmodule
lea ecx, [ebp - 0x3c]
call fcn.00402a70
mov eax, 0x49233c
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 0x40c004
sub eax, esi
push eax
push 0x49233c
lea ecx, [ebp - 0x20]
call fcn.00402a70
mov esi, dword [ebp - 0x80]
push 0x4d22b4
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x74]
push edx
mov ecx, esi
or ebx, 0x70
call fcn.0040f580
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, esi
call fcn.0040f580
push eax
mov ecx, edi
call fcn.00412c50
mov dword [0x4d22ac], eax
xor esi, esi
jmp 0x40c05c
mov dword [0x4d22ac], esi
test bl, 0x40
je 0x40c087
and ebx, 0xffffffbf
cmp dword [ebp - 0x44], 0x10
jb 0x40c076
mov edx, dword [ebp - 0x58]
push edx
call fcn.00426825
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
jmp 0x40c08c
mov edi, 0xf
test bl, 0x20
je 0x40c0b0
and ebx, 0xffffffdf
cmp dword [ebp - 0x60], 0x10
jb 0x40c0a6
mov eax, dword [ebp - 0x74]
push eax
call fcn.00426825
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], esi
mov byte [ebp - 0x74], 0
test bl, 0x10
je 0x40c0d4
and ebx, 0xffffffef
cmp dword [ebp - 0xc], 0x10
jb 0x40c0ca
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00426825
add esp, 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x20], 0
test bl, 8
je 0x40c0eb
cmp dword [ebp - 0x28], 0x10
jb 0x40c0eb
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00426825
add esp, 4
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp + 0x10]
push edi
push eax
call fcn.0040b560
add esp, 8
cmp dword [0x4d22d8], esi
jne 0x40c114
mov ecx, dword [0x4d22dc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40c11f
mov ecx, dword [0x4d22d4]
call fcn.00410470
mov eax, dword [0x4d22bc]
cmp eax, esi
je 0x40c135
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4d22bc], esi
mov eax, dword [ebp + 0xc]
mov dword [section..data], eax
cmp eax, esi
je 0x40c206
cmp eax, 2
je 0x40c206
mov ecx, dword [0x4d22b8]
cmp ecx, esi
jne 0x40c181
push 0x1c
call fcn.00426f3b
add esp, 4
cmp eax, esi
je 0x40c179
xor edx, edx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], esi
mov word [eax], dx
mov ecx, eax
jmp 0x40c17b
xor ecx, ecx
mov dword [0x4d22b8], ecx
mov eax, edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40c186
sub eax, esi
sar eax, 1
push eax
mov eax, edi
push eax
call fcn.00402280
cmp dword [ebp + 0x14], 0
jne 0x40c1b8
mov eax, dword [0x4d22b8]
cmp dword [eax + 0x14], 8
jb 0x40c1b1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040b6d0
cmp dword [0x4d22d8], 0
mov bl, al
jne 0x40c1e8
mov ecx, dword [0x4d22dc]
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.004271c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4d22d4]
call fcn.00410480
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
cmp dword [0x4d22d8], esi
jne 0x40c22e
mov edx, dword [0x4d22dc]
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.004271c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4d22d4]
call fcn.00410480
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004271c4
mov esp, ebp
pop ebp
ret