Function at 0x4108f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492898
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov esi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 0x8c], eax
sete al
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], edi
cmp al, bl
je 0x410d01
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x6c]
mov dword [esi + 8], edx
mov dl, byte [ebp + 0x14]
mov dword [esi + 0xc], eax
mov byte [ecx], dl
cmp byte [esi + 0x5c], bl
je 0x4109ae
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x98]
push esi
push eax
mov byte [esi + 0x5c], bl
call fcn.00408310
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x6c]
cmp byte [eax + 2], bl
jne 0x4109c2
mov ecx, dword [esi + 4]
cmp dword [ecx - 0xc], ebx
jne 0x410cf8
mov byte [eax + 2], bl
mov eax, 0xf
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], ebx
cmp dword [edi + 0x10], ebx
jne 0x410b10
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov ecx, dword [ebp - 0x88]
push 1
push ebx
lea edx, [ebp - 0x84]
push edx
mov byte [ebp - 4], 1
mov byte [ebp - 0x84], 0x3b
call fcn.0040e420
cmp eax, ebx
jl 0x410a42
mov ecx, dword [ebp - 0x88]
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040f5c0
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004036a0
mov edi, 0x10
cmp dword [ebp - 0x50], edi
jb 0x410a59
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00460f43
add esp, 4
jmp 0x410a59
mov edx, dword [ebp - 0x88]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [ebp - 0x80]
call fcn.00402b00
mov edi, 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, dword [ebp - 0x8c]
mov byte [ebp - 4], 3
cmp dword [eax + 0x10], ebx
jne 0x410a97
mov eax, dword [esi + 0x14]
push ebx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a0a0
add esp, 0x10
cmp dword [ebp - 0x18], edi
jb 0x410a92
mov eax, dword [ebp - 0x2c]
jmp 0x410a9e
lea eax, [ebp - 0x2c]
jmp 0x410a9e
cmp dword [eax + 0x14], edi
jb 0x410a9e
mov eax, dword [eax]
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x410aa9
lea ecx, [ebp - 0x80]
push ecx
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0042bc50
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.004036a0
cmp dword [ebp - 0x50], edi
jb 0x410ad5
mov edx, dword [ebp - 0x64]
push edx
call fcn.00460f43
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x410ae6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00460f43
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], edi
jb 0x410be1
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00460f43
add esp, 4
jmp 0x410be1
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402b00
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 5
call fcn.00457a50
add esp, 4
push 5
push ebx
push str.utf_8
lea ecx, [ebp - 0x2c]
call fcn.0040e420
mov esi, eax
cmp esi, 0xffffffff
je 0x410bb5
cmp esi, ebx
je 0x410b83
mov eax, dword [ebp - 0x1c]
dec eax
cmp esi, eax
je 0x410b83
lea ecx, [esi + 5]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e400
lea edx, [esi - 1]
push edx
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.0040e400
mov al, byte [eax]
cmp al, byte [edi]
mov edi, dword [ebp - 0x90]
jne 0x410b83
add esi, 6
jmp 0x410b86
add esi, 5
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
call fcn.0040f5c0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004036a0
cmp dword [ebp - 0x50], 0x10
jb 0x410bc1
mov edx, dword [ebp - 0x64]
push edx
call fcn.00460f43
add esp, 4
jmp 0x410bc1
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.00402b00
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], bl
jb 0x410bd6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00460f43
add esp, 4
mov esi, dword [ebp - 0x94]
mov edi, 0x10
push ebx
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0042b940
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.004036a0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], edi
jb 0x410c13
mov eax, dword [ebp - 0x64]
push eax
call fcn.00460f43
add esp, 4
lea ecx, [ebp - 0x48]
push ecx
call fcn.004297a0
add esp, 4
test al, al
je 0x410cb3
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], edi
jae 0x410c43
lea eax, [ebp - 0x48]
push 0xffffffffffffffff
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00429fa0
mov edx, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], edi
jae 0x410c5d
lea edx, [ebp - 0x2c]
lea edi, [esi + 4]
cmp edx, ebx
jne 0x410c68
xor eax, eax
jmp 0x410c86
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x8c], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410c73
sub eax, dword [ebp - 0x8c]
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.004017b0
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], bl
jb 0x410ca4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00460f43
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jmp 0x410cc9
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x410cbe
lea eax, [ebp - 0x48]
lea edi, [esi + 4]
push eax
mov ecx, edi
call fcn.00407740
push edi
call fcn.0042a380
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x410ceb
mov eax, dword [ebp - 0x48]
push eax
call fcn.00460f43
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov ecx, esi
call fcn.0040f3b0
jmp 0x410d16
cmp ecx, 2
mov ecx, esi
jne 0x410d0d
push ebx
push 7
jmp 0x410d11
push 4
push 6
call fcn.0040e2b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret 0x1c