Function at 0x465100
Capabilities:
Delete file

Disassembly:
sub esp, 0x14
mov eax, dword [0x55ab60]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x20], ecx
jne 0x4654b4
mov eax, dword [0x546560]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.start.qdr
mov dword [0x55ab60], 0xa
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x465170
push ecx
call edi
mov esi, eax
test esi, esi
je 0x465170
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x465170
mov edx, dword [esp + 0x10]
inc esi
push esi
push str.start.qdr
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x54a53c
push 0x546aec
push ecx
call fcn.0048def0
mov ecx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
add esp, 0x10
mov eax, dword [esi]
cmp ecx, eax
je 0x4651de
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4651b2
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4651b9
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4651c9
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4651de
lea ecx, [esp + 0x10]
call fcn.00412670
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46520d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x46520d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esp
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x465229
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call ebp
jmp 0x46523b
mov edx, dword [0x546560]
mov dword [ecx], edx
mov eax, dword [esp + 0x14]
push eax
call fcn.00405920
lea ecx, [esp + 0x20]
push ecx
call fcn.004b8be0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.004055c0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [0x546560]
mov ecx, 0x54a538
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x4652a4
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4652a4
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4652a4
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x54a538
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00531809
mov ecx, dword [0x546564]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4652ea
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4652ea
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
test bl, bl
je 0x465340
mov eax, dword [0x55aa40]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x465340
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x46530f
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x465316
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x465327
push ecx
mov ecx, dword [ecx - 8]
push ecx
mov ecx, 0x55aa40
call fcn.00405870
jmp 0x465340
mov ecx, 0x55aa40
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [0x55aa40], eax
add eax, 0xfffffff4
push eax
call ebp
lea edx, [esp + 0x14]
push edx
call fcn.00461440
mov ecx, dword [0x55a0c0]
mov esi, eax
add esp, 4
mov eax, dword [esi]
cmp ecx, eax
je 0x46539f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x46536f
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x465376
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x465387
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, 0x55a0c0
call fcn.00405870
jmp 0x46539f
mov ecx, 0x55a0c0
call fcn.00412670
mov esi, dword [esi]
mov dword [0x55a0c0], esi
add esi, 0xfffffff4
push esi
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4653ce
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4653ce
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
push 0x55a0c0
lea ecx, [esp + 0x1c]
call fcn.00405440
push 0x55aa40
lea eax, [esp + 0x18]
push 0x546f04
push eax
call fcn.00413060
mov eax, dword [eax]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405a90
lea ecx, [esp + 0x14]
call fcn.00405700
push 0
push ecx
mov ecx, esp
push str.StartCrash
call fcn.00412740
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00466660
cmp eax, 1
jne 0x46544b
push 0
push ecx
mov ecx, esp
push str.StartCrash
call fcn.00412740
mov ecx, esi
call fcn.004665c0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x465499
push 1
push ecx
mov ecx, esp
push str.StartCrash
call fcn.00412740
mov ecx, esi
call fcn.004665c0
push 0
push 0
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
push eax
mov dword [0x55a5a0], 0
call fcn.00405440
mov ecx, esi
call fcn.0047c3e0
push 0
push ecx
mov ecx, esp
push str.StartCrash
call fcn.00412740
mov ecx, esi
call fcn.004665c0
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret