Function at 0x4b9090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556095
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0x1c]
xor bl, bl
mov edx, dword [ecx + 0x2c]
mov esi, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 8
mov edi, dword [eax]
add edi, eax
lea eax, [ecx + 0x28]
mov edx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
sub esi, eax
mov dword [ebp - 0x14], eax
sub edx, dword [edi]
mov dword [ebp - 0x28], esi
movzx eax, word [edx]
cmp word [ebp - 0x10], ax
jae 0x4b9102
movzx eax, word [edx + 8]
lea edx, [edi + eax]
test ax, ax
je 0x4b9102
mov eax, dword [edx]
add eax, edx
jmp 0x4b9104
xor eax, eax
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea edx, [eax + esi]
cmp edx, esi
jae 0x4b911a
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ecx + 0x2c], eax
jmp 0x4b9150
jbe 0x4b9150
mov eax, dword [ecx + 0x30]
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x4b9135
push ecx
mov ecx, dword [ebp - 0x18]
push edx
lfence
call fcn.004147f0
jmp 0x4b9150
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
push 0
push ecx
lea esi, [eax + ecx]
call fcn.004f32c0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [eax + 0x2c], esi
mov edx, dword [ebp - 0x10]
mov ecx, edi
sub ecx, dword [edi]
movzx eax, word [ecx]
mov dword [ebp - 0x24], eax
cmp dx, ax
jae 0x4b917a
movzx eax, word [ecx + 8]
lea edx, [edi + eax]
test ax, ax
je 0x4b9174
mov esi, dword [edx]
add esi, edx
jmp 0x4b9181
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
xor esi, esi
cmp dx, ax
jae 0x4b9193
movzx eax, word [ecx + 8]
lea ecx, [edi + eax]
test ax, ax
je 0x4b9193
mov eax, dword [ecx]
add eax, ecx
jmp 0x4b9195
xor eax, eax
push dword [esi]
add eax, 4
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x28]
push eax
call fcn.004f2d40
mov ecx, edi
mov eax, 4
sub ecx, dword [edi]
add esp, 0xc
movzx esi, word [ecx]
cmp ax, si
jae 0x4b9332
movzx eax, word [ecx + 4]
lea edx, [edi + eax]
test ax, ax
je 0x4b9332
mov eax, dword [edx]
add eax, edx
je 0x4b9332
mov eax, 6
cmp ax, si
jae 0x4b9332
movzx eax, word [ecx + 6]
lea edx, [edi + eax]
test ax, ax
je 0x4b9332
mov eax, dword [edx]
add eax, edx
je 0x4b9332
movzx eax, word [ecx + 4]
sub esp, 8
movzx ecx, word [ecx + 4]
add eax, edi
add ecx, edi
mov edx, dword [eax]
mov esi, dword [ecx]
add edx, eax
add esi, ecx
mov ecx, esp
push ecx
mov eax, dword [edx]
add edx, 4
add eax, edx
mov dword [ecx], eax
mov ecx, esp
lea eax, [esi + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0x40]
call fcn.00465150
mov dword [ebp - 4], 0
mov esi, edi
sub esi, dword [edi]
mov ecx, 6
movzx eax, word [esi]
mov dword [ebp - 0x28], eax
cmp cx, ax
jae 0x4b926a
movzx eax, word [esi + 6]
lea ecx, [edi + eax]
test ax, ax
je 0x4b9262
mov edx, dword [ecx]
add edx, ecx
jmp 0x4b9271
mov eax, dword [ebp - 0x28]
mov ecx, 6
xor edx, edx
cmp cx, ax
jae 0x4b9283
movzx eax, word [esi + 6]
lea ecx, [edi + eax]
test ax, ax
je 0x4b9283
mov esi, dword [ecx]
add esi, ecx
jmp 0x4b9285
xor esi, esi
mov eax, dword [edx]
sub esp, 8
mov ecx, esp
add edx, 4
add eax, edx
push ecx
mov dword [ecx], eax
mov ecx, esp
lea eax, [esi + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0x34]
call fcn.00465150
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x28]
push eax
call fcn.00434260
add esp, 8
test al, al
jne 0x4b9315
cmp byte [esi + 0x59], al
je 0x4b9317
mov ecx, dword [0x5a99a0]
cmp ecx, 0x5a99a0
je 0x4b9301
test byte [ecx + 0x1c], 0x10
je 0x4b9301
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x4b92e8
mov eax, dword [eax]
push eax
push dword [ecx + 0x14]
mov edx, 0x57db44
push dword [ecx + 0x10]
mov ecx, 0xa
call fcn.00412b50
add esp, 0xc
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4b930c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4b9317
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004121e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004121e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret