Function at 0x403710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xe0]
push edi
mov edi, dword [0x55a69c]
push 1
push 0x50d34c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
call fcn.004025a0
lea eax, [esp + 0xe4]
mov ecx, edi
push eax
mov ebx, 1
call fcn.0040bfa0
test al, al
jne 0x4037d4
push 7
push str.vmodule
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], al
call fcn.004025a0
lea eax, [esp + 0xcc]
mov ecx, edi
push eax
mov ebx, 3
call fcn.0040bfa0
mov byte [esp + 0x13], 0
test al, al
je 0x4037d9
mov byte [esp + 0x13], 1
test bl, 2
je 0x403818
and ebx, 0xfffffffd
cmp dword [esp + 0xe0], 0x10
jb 0x4037fa
push dword [esp + 0xcc]
call fcn.00481594
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
test bl, 1
je 0x403839
and ebx, 0xfffffffe
cmp dword [esp + 0xf8], 0x10
jb 0x403839
push dword [esp + 0xe4]
call fcn.00481594
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4039db
cmp dword [0x55a678], 0
je 0x40385b
cmp byte [0x55b9dc], 0
jne 0x403b18
int3
test bl, 4
je 0x40386c
lea ecx, [esp + 0x18]
and ebx, 0xfffffffb
call fcn.00403ba0
mov eax, dword [0x55a664]
push 0x10
mov dword [0x55a678], eax
call fcn.0048156c
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4038f6
push str.vmodule
lea ecx, [esp + 0x118]
call fcn.00401f90
push 0x50d34c
lea ecx, [esp + 0xe8]
or ebx, 8
call fcn.00401f90
sub esp, 8
lea eax, [esp + 0x11c]
mov ecx, edi
or ebx, 0x70
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040c050
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.0040c050
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004152d0
mov dword [0x55a664], eax
jmp 0x403900
mov dword [0x55a664], 0
test bl, 0x40
je 0x40393f
and ebx, 0xffffffbf
cmp dword [esp + 0xe0], 0x10
jb 0x403921
push dword [esp + 0xcc]
call fcn.00481594
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
test bl, 0x20
je 0x40397e
and ebx, 0xffffffdf
cmp dword [esp + 0x110], 0x10
jb 0x403960
push dword [esp + 0xfc]
call fcn.00481594
add esp, 4
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
test bl, 0x10
je 0x4039bd
and ebx, 0xffffffef
cmp dword [esp + 0xf8], 0x10
jb 0x40399f
push dword [esp + 0xe4]
call fcn.00481594
add esp, 4
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], 0
mov byte [esp + 0xe4], 0
test bl, 8
je 0x4039db
cmp dword [esp + 0x128], 0x10
jb 0x4039db
push dword [esp + 0x114]
call fcn.00481594
add esp, 4
mov eax, dword [esi]
mov dword [0x5549b4], eax
test al, 1
jne 0x4039fd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
call fcn.004034c0
cmp dword [0x55a670], 0
jne 0x403a21
push 0xffffffffffffffff
push dword [0x55a66c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x403a2d
push dword [0x55a680]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55a668]
test eax, eax
je 0x403a47
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x55a668], 0
mov edx, dword [0x55a658]
test edx, edx
jne 0x403a7e
push 0x18
call fcn.0048156c
mov edx, eax
add esp, 4
test edx, edx
je 0x403a76
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
jmp 0x403a78
xor edx, edx
mov dword [0x55a658], edx
mov edi, dword [esi + 4]
cmp word [edi], 0
jne 0x403a8b
xor ecx, ecx
jmp 0x403a9f
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a90
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.004064c0
cmp dword [esi + 0xc], 0
jne 0x403ac2
mov eax, dword [0x55a658]
cmp dword [eax + 0x14], 8
jb 0x403abb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00403630
cmp dword [0x55a670], 0
mov bl, al
jne 0x403af5
push dword [0x55a66c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
push dword [0x55a680]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x12c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
push 1
call fcn.004c4f50
int3