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

Disassembly:
push 0xffffffffffffffff
push 0x1003b696
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.10005200
add esp, 4
test eax, eax
je 0x100053d3
lea eax, [ebx + 1]
jmp 0x1000573e
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.100031f0
add esp, 8
mov esi, eax
lea edx, [esp + 0x90]
mov byte [esp + 0x154], 2
push edx
mov dword [esp + 0x20], ebp
call fcn.10011359
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.100113c8
test al, al
je 0x10005447
cmp byte [esp + 0x2c], 7
mov byte [esp + 0x1b], bl
je 0x1000544c
mov byte [esp + 0x1b], 1
lea edi, [esp + 0x90]
call fcn.10005770
mov esi, 0x10
mov dword [esp + 0x154], ebp
cmp dword [esp + 0x54], esi
jb 0x10005477
mov edx, dword [esp + 0x40]
push edx
call fcn.100236cc
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x1000549f
mov eax, dword [esp + 0x20]
mov byte [eax], 1
lea esi, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call fcn.10014ae3
xor eax, eax
jmp 0x1000573e
push 0x1003eb5a
mov edx, str.attachment
lea ecx, [esp + 0x28]
call fcn.100158e4
cmp eax, ebx
je 0x10005634
push str.attachment
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x1003eb5a
call fcn.100157a9
cmp byte [eax + 8], 4
jne 0x10005634
push str.attachment
lea edx, [esp + 0x28]
push edx
mov ecx, 0x1003eb5a
call fcn.100157a9
push eax
lea ecx, [esp + 0x5c]
call fcn.10014cd1
push eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x158], 4
call fcn.10003170
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x154], 6
call fcn.10001750
mov eax, dword [esp + 0x128]
mov ebp, 8
cmp dword [esp + 0x13c], ebp
jae 0x1000553b
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000561c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.10015fc5
mov byte [esp + 0x154], 7
cmp dword [eax + 0x18], esi
jb 0x1000556a
mov eax, dword [eax + 4]
jmp 0x1000556d
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.100016e0
mov byte [esp + 0x154], 8
mov eax, dword [esp + 0x128]
cmp dword [esp + 0x13c], ebp
jae 0x10005596
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10005050
add esp, 8
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.10001750
lea ecx, [esp + 0x74]
mov byte [esp + 0x154], 6
call fcn.10001750
cmp edi, ebx
je 0x100055f5
lea edx, [esp + 0x24]
push edx
mov edx, str.i_notremove
call fcn.10015be0
test al, al
jne 0x100055f5
mov eax, dword [esp + 0x128]
cmp dword [esp + 0x13c], ebp
jae 0x100055ee
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x124]
call fcn.1000b0c0
lea esi, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call fcn.10014ae3
mov eax, edi
jmp 0x1000573e
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x124]
mov byte [eax], 1
call fcn.1000b0c0
jmp 0x10005484
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ebx
call fcn.10015fc5
mov byte [esp + 0x154], 9
cmp dword [eax + 0x18], esi
jb 0x10005658
mov eax, dword [eax + 4]
jmp 0x1000565b
add eax, 4
push eax
call fcn.100042f0
mov edi, eax
cmp dword [esp + 0x54], esi
jb 0x10005676
mov edx, dword [esp + 0x40]
push edx
call fcn.100236cc
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 0x10005726
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.10021653
add esp, 0x10
cmp dword [esp + 0x70], 0x10
jb 0x100056f6
mov eax, dword [esp + 0x5c]
push eax
call fcn.100236cc
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.10014ae3
push edi
call fcn.10020b7f
cmp dword [esp + 0x20], ebx
jne 0x10005726
mov dword [esp + 0x1c], ebp
lea esi, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call fcn.10014ae3
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.1002333a
add esp, 0x144
ret