Function at 0x100053a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1003b5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x10047330]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10047330]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x15c]
mov esi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
call fcn.10005230
add esp, 4
test eax, eax
je 0x10005403
lea eax, [ebx + 1]
jmp 0x1000576e
and dword [esp + 0x2c], 0xfffffe00
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x3c]
push esi
mov ebp, 1
push ecx
mov dword [esp + 0x15c], ebp
call fcn.10003220
add esp, 8
mov esi, eax
lea edx, [esp + 0x90]
mov byte [esp + 0x154], 2
push edx
mov dword [esp + 0x20], ebp
call fcn.10011318
mov ecx, 3
mov dword [esp + 0x154], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x24]
push ecx
push esi
push eax
call fcn.10011387
test al, al
je 0x10005477
cmp byte [esp + 0x2c], 7
mov byte [esp + 0x1b], bl
je 0x1000547c
mov byte [esp + 0x1b], 1
lea edi, [esp + 0x90]
call fcn.100057a0
mov esi, 0x10
mov dword [esp + 0x154], ebp
cmp dword [esp + 0x54], esi
jb 0x100054a7
mov edx, dword [esp + 0x40]
push edx
call fcn.1002362f
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x100054cf
mov eax, dword [esp + 0x20]
mov byte [eax], 1
lea esi, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call fcn.10014aaf
xor eax, eax
jmp 0x1000576e
push 0x1003eb2a
mov edx, str.attachment
lea ecx, [esp + 0x28]
call fcn.100158b0
cmp eax, ebx
je 0x10005664
push str.attachment
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x1003eb2a
call fcn.10015775
cmp byte [eax + 8], 4
jne 0x10005664
push str.attachment
lea edx, [esp + 0x28]
push edx
mov ecx, 0x1003eb2a
call fcn.10015775
push eax
lea ecx, [esp + 0x5c]
call fcn.10014c9d
push eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x158], 4
call fcn.100031a0
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x154], 6
call fcn.10001730
mov eax, dword [esp + 0x128]
mov ebp, 8
cmp dword [esp + 0x13c], ebp
jae 0x1000556b
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000564c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.10015f8e
mov byte [esp + 0x154], 7
cmp dword [eax + 0x18], esi
jb 0x1000559a
mov eax, dword [eax + 4]
jmp 0x1000559d
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.100016c0
mov byte [esp + 0x154], 8
mov eax, dword [esp + 0x128]
cmp dword [esp + 0x13c], ebp
jae 0x100055c6
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10005080
add esp, 8
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.10001730
lea ecx, [esp + 0x74]
mov byte [esp + 0x154], 6
call fcn.10001730
cmp edi, ebx
je 0x10005625
lea edx, [esp + 0x24]
push edx
mov edx, str.i_notremove
call fcn.10015bac
test al, al
jne 0x10005625
mov eax, dword [esp + 0x128]
cmp dword [esp + 0x13c], ebp
jae 0x1000561e
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x124]
call fcn.10007600
lea esi, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call fcn.10014aaf
mov eax, edi
jmp 0x1000576e
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x124]
mov byte [eax], 1
call fcn.10007600
jmp 0x100054b4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ebx
call fcn.10015f8e
mov byte [esp + 0x154], 9
cmp dword [eax + 0x18], esi
jb 0x10005688
mov eax, dword [eax + 4]
jmp 0x1000568b
add eax, 4
push eax
call fcn.10004320
mov edi, eax
cmp dword [esp + 0x54], esi
jb 0x100056a6
mov edx, dword [esp + 0x40]
push edx
call fcn.1002362f
add esp, 4
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp edi, ebx
je 0x10005756
and dword [esp + 0x12c], 0xfffffe00
mov dword [esp + 0x20], ebp
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
mov byte [esp + 0x164], 0xc
call fcn.100216f8
add esp, 0x10
cmp dword [esp + 0x70], 0x10
jb 0x10005726
mov eax, dword [esp + 0x5c]
push eax
call fcn.1002362f
add esp, 4
mov dword [esp + 0x70], esi
lea esi, [esp + 0x124]
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x154], 1
call fcn.10014aaf
push edi
call fcn.10020c24
cmp dword [esp + 0x20], ebx
jne 0x10005756
mov dword [esp + 0x1c], ebp
lea esi, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call fcn.10014aaf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.100232be
add esp, 0x144
ret