Function at 0x422d60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
call fcn.00425930
mov esi, eax
push 0x4cb3b0
mov ecx, esi
call fcn.00426320
test al, al
jne 0x422da9
push str.vmodule
mov ecx, esi
call fcn.00426320
test al, al
je 0x422ee6
cmp dword [0x4e3428], ebx
je 0x422dd0
push str._g_vlog_info_prev
push 0x165
push str.d:webapps_b_build_slave_repo_build_src_baselogging.cc
lea ecx, [ebp - 0xf8]
call fcn.00422710
mov ebx, 1
test bl, 1
je 0x422de3
lea ecx, [ebp - 0xf8]
and ebx, 0xfffffffe
call fcn.00422910
mov eax, dword [0x4e3424]
push 0x10
mov dword [0x4e3428], eax
call fcn.00494794
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x422e93
cmp byte [str.vmodule], 0
mov dword [ebp - 0x40], str.vmodule
jne 0x422e1b
mov dword [ebp - 0x3c], 0
jmp 0x422e2f
mov ecx, str.vmodule
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422e23
sub ecx, edx
mov dword [ebp - 0x3c], ecx
cmp byte [0x4cb3b0], 0
mov dword [ebp - 0x48], 0x4cb3b0
jne 0x422e48
mov dword [ebp - 0x44], 0
jmp 0x422e5c
mov ecx, 0x4cb3b0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422e50
sub ecx, edx
mov dword [ebp - 0x44], ecx
push 0x4e342c
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
or ebx, 6
push eax
call fcn.00426070
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00426070
mov ecx, dword [ebp - 0x38]
push eax
call fcn.004404d0
mov dword [0x4e3424], eax
jmp 0x422e9d
mov dword [0x4e3424], 0
test bl, 4
je 0x422ecc
mov eax, dword [ebp - 8]
and ebx, 0xfffffffb
cmp eax, 0x10
jb 0x422eba
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00406730
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
test bl, 2
je 0x422ee6
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x422ee6
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00406730
mov eax, dword [edi]
mov dword [0x4de1ec], eax
test al, 1
jne 0x422f04
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4e3434]
test eax, eax
je 0x422f1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e3434], 0
mov edx, dword [0x4e3430]
test edx, edx
jne 0x422f55
push 0x18
call fcn.00494794
mov edx, eax
add esp, 4
test edx, edx
je 0x422f4d
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x422f4f
xor edx, edx
mov dword [0x4e3430], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x422f62
xor ecx, ecx
jmp 0x422f76
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422f67
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004064e0
cmp dword [edi + 0xc], 0
jne 0x422f99
mov eax, dword [0x4e3430]
cmp dword [eax + 0x14], 8
jb 0x422f92
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00423430
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret