Function at 0x10045af0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1007df08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x10084910
push eax
mov ebp, ecx
call fcn.1001f310
add esp, 8
mov edx, dword [0x10098a04]
xor edi, edi
mov ecx, 0x10098a04
mov dword [esp + 0x54], edi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x54], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push edi
push 0x2bf
mov byte [esp + 0x5c], 2
call fcn.10001450
add esp, 8
cmp eax, edi
je 0x10045b7a
push 0x2bf
push eax
lea ecx, [esp + 0x2c]
call fcn.10004800
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.10004e20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0x1388
push 1
push 1
push eax
push ecx
call fcn.10021df0
add esp, 0x20
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x5c], 3
call fcn.10043cd0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x5c], esi
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x54], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x54], 5
jge 0x10045c31
push 0x104
lea ecx, [esp + 0x60]
call fcn.100029f0
mov esi, dword [esp + 0x5c]
mov ecx, dword [0x10098990]
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, edi
jne 0x10045c4c
xor eax, eax
jmp 0x10045c60
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10045c51
sub eax, edx
js 0x10046073
cmp eax, dword [esi - 8]
jg 0x10046073
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.10069f52
add esp, 8
cmp eax, edi
jne 0x10045c84
or eax, 0xffffffff
jmp 0x10045c86
sub eax, esi
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x64]
call fcn.10008ae0
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x24]
push str._smenu_s.txt
push ecx
mov byte [esp + 0x64], 6
call fcn.10004e20
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x54], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10045cd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x40]
cmp edi, dword [esp + 0x44]
mov byte [esp + 0x54], 7
je 0x10045e8c
add edi, 0x14
lea ecx, [edi - 0x14]
call fcn.10040820
test eax, eax
je 0x10045e73
push ebx
mov ecx, ebp
call fcn.100423b0
test eax, eax
je 0x10045dad
push ebx
mov ecx, ebp
call fcn.100423b0
mov ecx, dword [edi - 4]
add eax, 0x10
mov eax, dword [eax]
push eax
push ecx
call fcn.10068d19
add esp, 8
test eax, eax
jne 0x10045dad
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x58], 8
call fcn.1001f420
add esp, 4
push ebx
mov ecx, ebp
call fcn.100423b0
lea ecx, [esp + 0x14]
add eax, 0x68
push ecx
mov ecx, eax
call fcn.10004aa0
push ebx
mov ecx, ebp
call fcn.100423b0
push 7
mov ecx, eax
call fcn.10041680
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x54], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10045e69
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ecx, edi
mov byte [esp + 0x54], 9
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x10045e47
lea edx, [esp + 0x28]
push 0x1008490c
push edx
call fcn.1001f310
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0xa
call fcn.10004aa0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x54], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10045e21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
push 0x1388
push 1
push 0
push esi
push eax
call fcn.10021df0
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x38]
call fcn.10004aa0
lea eax, [edi - 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.10043630
lea eax, [esi - 0x10]
mov byte [esp + 0x54], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10045e73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x44]
add edi, 0x8c
lea eax, [edi - 0x14]
cmp eax, ecx
jne 0x10045d02
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
je 0x10045eac
push esi
mov ecx, ebp
call fcn.10043a60
mov eax, dword [esp + 0x34]
add esi, 0x8c
cmp esi, eax
jne 0x10045e92
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x10045f02
test esi, esi
je 0x10045ed7
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x60], ecx
jne 0x10045ee5
push 0
push 0x10084944
push 0x1008492c
jmp 0x10045ef1
push 0
push 0x10084944
push 0x1008491c
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10045f3a
mov ecx, dword [esp + 0x34]
sub ecx, esi
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x60], eax
je 0x10045f36
push 1
push 0
push 0xbd6
call fcn.1001d430
add esp, 0xc
mov esi, dword [esp + 0x30]
test esi, esi
mov byte [esp + 0x54], 5
je 0x10045f72
cmp esi, dword [esp + 0x34]
je 0x10045f69
lea esp, [esp]
mov ecx, esi
call fcn.10040c60
mov eax, dword [esp + 0x34]
add esi, 0x8c
cmp esi, eax
jne 0x10045f50
mov esi, dword [esp + 0x30]
push esi
call fcn.10069196
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10045f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10045fb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x40]
test esi, esi
mov byte [esp + 0x54], 2
je 0x10045ff2
cmp esi, dword [esp + 0x44]
je 0x10045fe5
jmp 0x10045fd0
mov ecx, esi
call fcn.10040c60
mov eax, dword [esp + 0x44]
add esi, 0x8c
cmp esi, eax
jne 0x10045fd0
mov eax, dword [esp + 0x40]
push eax
call fcn.10069196
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046015
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004605e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 8
push 0x80070057
call fcn.10001330
int3