Function at 0x481d40
Capabilities:
Delete file

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, ecx
xor ebp, ebp
cmp word [edi + 0x1950a], bp
je 0x481d74
movzx eax, word [esi + 0xc]
cmp ax, word [edi + 0x196c4]
jne 0x481d74
mov eax, dword [esi + 0xe]
cmp eax, dword [edi + 0x196ca]
je 0x481f7b
mov ecx, dword [esi + 0x18]
cmp ecx, ebp
mov eax, dword [esi + 0x14]
ja 0x481e29
jb 0x481d8f
cmp eax, 0x200000
jae 0x481e29
mov edx, dword [esi + 0x1c]
cmp eax, edx
mov ebx, dword [esi + 0x20]
jne 0x481e09
cmp ecx, ebx
jne 0x481e09
mov eax, dword [esi + 0xe]
push eax
movzx eax, word [esi + 0xc]
push eax
mov ecx, edi
call fcn.00437d10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push 0xffffffffffffffff
push ebp
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
push eax
mov word [ecx + 4], bp
call fcn.00401640
lea eax, [esp + 0x54]
push eax
lea ecx, [edi + 0x1916a]
call fcn.0045fdf0
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x481dec
mov eax, dword [eax + 4]
jmp 0x481def
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x48], ebx
jb 0x481e09
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004aef39
add esp, 4
mov edx, dword [esi + 0xe]
movzx eax, word [esi + 0xc]
push edx
push eax
lea ecx, [edi + 0x1916a]
call fcn.0046f880
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
movzx edx, word [esi + 0x12]
movzx eax, word [esi + 0xc]
mov ecx, dword [esi + 0xe]
movzx edx, dx
cmp edx, ebp
mov word [esp + 0x16], bp
mov word [esp + 0x10], ax
mov dword [esp + 0x12], ecx
jle 0x481fc6
cmp edx, 4
jle 0x481e7a
cmp edx, 5
jne 0x481fc6
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [edi + 0x19ed4]
call fcn.0047a5b0
lea eax, [esp + 0x10]
push eax
jmp 0x481f70
lea edx, [esp + 0x24]
push edx
sub esp, 0x1c
mov ebx, esp
mov dword [esp + 0x70], esp
movzx eax, ax
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call fcn.00437d10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x94], esp
push 0xffffffffffffffff
push ebp
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
push eax
mov word [ecx + 4], bp
call fcn.00401640
push ebx
lea ecx, [edi + 0x1916a]
call fcn.0045fdf0
mov ecx, edi
call fcn.00480e00
test al, al
je 0x481f1c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebp
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.004c15f0
push 0
mov ebx, eax
mov ebp, edx
call fcn.004c0de9
add esp, 4
cmp ebp, edx
ja 0x481f1a
jb 0x481f0e
cmp ebx, eax
jae 0x481f1a
sub eax, ebx
sbb edx, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
xor ebp, ebp
movzx eax, word [esi + 0x50e]
cmp ax, 3
jne 0x481f87
cmp word [edi + 0x1950a], bp
jne 0x481f87
call fcn.004107c0
cmp ax, 4
jne 0x481f87
fld qword [0x4f67b0]
call fcn.004c1576
cmp dword [esp + 0x1c], edx
ja 0x481f87
jb 0x481f56
cmp dword [esp + 0x18], eax
jae 0x481f87
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x19ed4]
call fcn.0047a5b0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0x19ee0]
call fcn.00482db0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
jne 0x481fad
cmp edx, ebx
jne 0x481fad
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x19ec8]
jmp 0x481f66
cmp dword [esp + 0x1c], ebp
ja 0x481fc6
jb 0x481fbf
cmp dword [esp + 0x18], 0x2a300
jae 0x481fc6
mov byte [esp + 0x50], 0
jmp 0x481fcb
mov byte [esp + 0x50], 1
mov edx, dword [edi + 0x19ee4]
lea eax, [esp + 0x10]
lea ebp, [edi + 0x19ee0]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0x30], edx
call fcn.00482d30
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x481ff8
cmp eax, ebp
je 0x481ffd
call fcn.004c000c
mov edx, dword [esp + 0x28]
cmp dword [ebx + 4], edx
jne 0x482054
push 0
push 0x2217
mov ecx, edi
call fcn.004898e0
mov ebp, eax
test ebp, ebp
je 0x482054
cmp word [edi + 0x1950a], 0
jne 0x482033
push ebp
mov ecx, edi
call fcn.00438c00
mov byte [eax + 0x134], 1
movzx ecx, word [esi + 0xc]
mov eax, dword [esi + 0xe]
push 0
push eax
push ecx
push 0x2217
push ebp
mov ecx, edi
call fcn.00438c00
push eax
push ebp
mov ecx, edi
call fcn.0047fd60
cmp byte [esp + 0x50], 0
je 0x4820c9
mov eax, dword [esi + 0xe]
push eax
movzx eax, word [esi + 0xc]
push eax
mov ecx, edi
call fcn.00437d10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
xor edx, edx
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edx
push eax
mov word [ecx + 4], dx
call fcn.00401640
lea eax, [esp + 0x54]
push eax
lea ecx, [edi + 0x1916a]
call fcn.0045fdf0
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x4820ac
mov eax, dword [eax + 4]
jmp 0x4820af
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x48], ebx
jb 0x4820c9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004aef39
add esp, 4
mov edx, dword [esi + 0xe]
movzx eax, word [esi + 0xc]
push edx
push eax
lea ecx, [edi + 0x1916a]
call fcn.0046f880
mov ecx, edi
call fcn.00490750
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x3c
ret 4