Function at 0x4111e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48915b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
xor esi, esi
push 0x2c
mov dword [ebp - 0x1c], esi
call fcn.0041ad51
add esp, 4
cmp eax, esi
je 0x4115c8
mov dword [ebp - 0x20], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x28], 1
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x29], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
cmp ecx, eax
je 0x4114e4
mov dword [ebp - 0x48], 0x5c
jmp 0x41125b
mov ecx, dword [ebp - 0x14]
xor esi, esi
push esi
xor edx, edx
push ecx
mov edi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], dx
call fcn.00405230
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
push esi
push eax
lea ebx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004124a0
add esp, 8
xor ecx, ecx
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x88], cx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0
call fcn.00405230
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 3
call fcn.004124a0
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa4]
mov edi, 8
cmp dword [ebp - 0x90], edi
jae 0x4112ee
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x411446
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp eax, 1
jb 0x411446
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jae 0x411320
lea ebx, [ebp - 0x40]
lea esp, [esp]
mov eax, ebx
test ecx, ecx
je 0x411446
lea ebx, [ebx]
cmp word [eax], 0x5c
je 0x411341
add eax, 2
dec ecx
jne 0x411330
jmp 0x411446
test eax, eax
je 0x411446
mov esi, 1
lea edx, [ebp - 0x48]
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x4113d7
add ecx, 2
add edx, 2
dec esi
jne 0x411353
mov ecx, dword [ebp - 0x40]
mov edi, 8
cmp dword [ebp - 0x2c], edi
jae 0x411374
lea ecx, [ebp - 0x40]
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x411446
push eax
xor ecx, ecx
lea esi, [ebp - 0xcc]
lea edx, [ebp - 0x40]
call fcn.004118e0
mov eax, esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00411fa0
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x20]
je 0x4113ff
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], edi
jb 0x4113b5
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xbc]
mov edi, ecx
lea ecx, [ebp - 0xcc]
call fcn.00408940
mov edi, 8
test eax, eax
js 0x4113ff
lea eax, [ebp - 0x10]
jmp 0x411408
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x411364
mov ecx, eax
sub ecx, ebx
sar ecx, 1
or edx, 0xffffffff
sub edx, ecx
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov dword [ebp - 0x10], ecx
lea ebx, [eax + 2]
mov edi, 8
jmp 0x411320
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x20]
cmp dword [eax], edx
jne 0x41142f
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00412980
push eax
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00412540
cmp dword [ebp - 0xb8], edi
jb 0x411446
mov eax, dword [ebp - 0xcc]
push eax
call fcn.0041a981
add esp, 4
cmp dword [ebp - 0x90], edi
jb 0x41145d
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0041a981
add esp, 4
xor esi, esi
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], esi
mov word [ebp - 0xa4], dx
cmp dword [ebp - 0x74], edi
jb 0x41148d
mov eax, dword [ebp - 0x88]
push eax
call fcn.0041a981
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], esi
mov word [ebp - 0x88], cx
cmp dword [ebp - 0x58], edi
jb 0x4114ad
mov edx, dword [ebp - 0x6c]
push edx
call fcn.0041a981
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], esi
mov word [ebp - 0x6c], ax
cmp dword [ebp - 0x2c], edi
jb 0x4114cd
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0041a981
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add eax, 0x1c
mov dword [ebp - 0x14], eax
cmp eax, dword [edx + 4]
jne 0x411256
jmp 0x4114ec
mov edi, 8
lea ebx, [edi - 1]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ecx]
cmp esi, ecx
je 0x411597
lea esp, [esp]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x6c]
lea ebx, [esi + 0xc]
push ecx
call fcn.004124a0
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x58], edi
jae 0x411522
lea eax, [ebp - 0x6c]
push eax
call fcn.0040d260
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x58], edi
jb 0x411540
mov edx, dword [ebp - 0x6c]
push edx
call fcn.0041a981
add esp, 4
cmp byte [esi + 0x29], 0
jne 0x411587
mov eax, dword [esi + 8]
cmp byte [eax + 0x29], 0
jne 0x41156c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
jne 0x411587
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
je 0x411560
jmp 0x411587
mov eax, dword [esi + 4]
cmp byte [eax + 0x29], 0
jne 0x411585
cmp esi, dword [eax + 8]
jne 0x411585
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x29], 0
je 0x411575
mov esi, eax
mov ecx, dword [ebp - 0x20]
cmp esi, ecx
jne 0x411500
mov ebx, 7
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
push ecx
push eax
lea edi, [ebp - 0x4c]
lea esi, [ebp - 0x24]
call fcn.00411ee0
mov eax, dword [ebp - 0x20]
push eax
call fcn.0041a981
mov ecx, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x44], esi
call fcn.00419c95
push 0x4a8d68
lea edx, [ebp - 0xb0]
push edx
mov dword [ebp - 0xb0], vtable.std::bad_alloc.0
call fcn.0041c5c1
int3