Function at 0x412874
Capabilities:
Delete file

Disassembly:
mov eax, 0x452ce3
call fcn.0044ca14
sub esp, 0x8c
push ebx
push edi
xor ebx, ebx
lea edi, [ebp - 0x94]
mov dword [ebp - 0x14], ebx
call fcn.00412b8b
mov dword [ebp - 4], ebx
cmp dword [esi + 0x58], 8
jb 0x4128a4
mov eax, dword [esi + 0x44]
jmp 0x4128a7
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x58], 8
jb 0x4128b9
mov eax, dword [esi + 0x44]
jmp 0x4128bc
lea eax, [esi + 0x44]
push ebx
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00420304
test al, al
jne 0x4128ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00420553
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret
push dword [esi + 0xb4]
lea eax, [ebp - 0x34]
push dword [esi + 0xb0]
push 0x458f00
push eax
call fcn.0043c1c2
mov eax, dword [esi + 4]
add esp, 0x10
cmp byte [eax + 0x1794], bl
je 0x412941
push dword [eax + 0x16d8]
lea eax, [ebp - 0x50]
push eax
call fcn.00401f83
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], 1
jb 0x41293c
mov eax, dword [eax + 4]
jmp 0x412946
add eax, 4
jmp 0x412946
mov eax, 0x459124
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040162e
sub esp, 0x1c
mov dword [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BlockSize
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x20], esp
mov edi, str.FileInfo
push edi
call fcn.0040162e
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 1
call fcn.004207ec
mov dword [ebp - 4], ebx
test byte [ebp - 0x14], 1
je 0x4129a8
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004017a5
mov eax, dword [esi + 4]
cmp byte [eax + 0x1794], bl
lea eax, [ebp - 0x34]
jne 0x4129bb
mov eax, 0x459124
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Length
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.0040162e
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], bl
call fcn.004207ec
cmp dword [esi + 0x74], 0x10
jb 0x412a0b
mov eax, dword [esi + 0x60]
jmp 0x412a0e
lea eax, [esi + 0x60]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x459790
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.0040162e
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], bl
call fcn.004207ec
lea eax, [esi + 0x94]
cmp dword [eax + 0x18], 0x10
jb 0x412a64
mov eax, dword [eax + 4]
jmp 0x412a67
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x459794
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.0040162e
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], bl
call fcn.004207ec
cmp dword [esi + 0x90], 0x10
jb 0x412aba
mov eax, dword [esi + 0x7c]
jmp 0x412abd
lea eax, [esi + 0x7c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Referer
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.0040162e
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], bl
call fcn.004207ec
mov eax, dword [esi + 4]
push dword [eax + 0x1690]
lea eax, [ebp - 0x50]
push eax
call fcn.00401f83
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x412b25
mov eax, dword [eax + 4]
jmp 0x412b28
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.DlMode
call fcn.0040162e
sub esp, 0x1c
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.0040162e
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xc
call fcn.004207ec
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004017a5
lea ebx, [ebp - 0x94]
call fcn.0042059e
mov bl, al
jmp 0x4128ce