Function at 0x590597d0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x59155b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x198], ebp
call fcn.59001210
push eax
lea ecx, [esp + 0x24]
call fcn.590a19b0
push 0x59188468
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 1
call fcn.590a2ef0
push str..mtmp
lea ecx, [esp + 0x24]
call fcn.590a2ef0
mov eax, dword [esp + 0x20]
push eax
call fcn.5900b110
add esp, 4
lea ecx, [esp + 0x24]
push 0x591ae140
call fcn.590a19b0
mov ecx, dword [esp + 0x1a0]
push 0x591ae140
push ecx
mov byte [esp + 0x1a0], 2
call fcn.5908b099
add esp, 8
test eax, eax
jne 0x59059899
lea edx, [esp + 0x28]
push edx
call fcn.5900d660
add esp, 4
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 3
call fcn.590a2460
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 2
call fcn.590a22e0
jmp 0x590598aa
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x24]
push eax
call fcn.590a2460
push str.ContentBuf.mtmp
lea ecx, [esp + 0x28]
call fcn.590a2ef0
mov edx, dword [esp + 0x24]
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x14], 1
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x50]
push ecx
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x59059a4a
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov byte [esp + 0x198], 4
mov bl, 6
test byte [esp + 0x50], 0x10
jne 0x59059a1b
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x28]
push eax
call fcn.590a19b0
push 0x591ae140
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 5
call fcn.590a19b0
mov ecx, dword [esp + 0x1a0]
push 0x591ae140
push ecx
mov byte [esp + 0x1a0], bl
call fcn.5908b099
add esp, 8
test eax, eax
jne 0x59059988
lea edx, [esp + 0x3c]
push edx
call fcn.5900d660
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 7
call fcn.590a2460
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], bl
call fcn.590a22e0
jmp 0x59059999
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x10]
push eax
call fcn.590a2460
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.590a2f50
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x20], ebp
call fcn.590a6d60
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
push ecx
push eax
mov byte [esp + 0x1a4], 8
call fcn.5900d9e0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.590a7660
cmp dword [esp + 0x1c], ebp
jne 0x590599f5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x590599f9
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], 5
call fcn.590a22e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 4
call fcn.590a22e0
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebp
jne 0x59059908
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x198], 2
cmp eax, ebp
je 0x59059cda
push 0x591ae140
lea ecx, [esp + 0x20]
call fcn.590a19b0
mov ecx, dword [esp + 0x1a0]
push 0x591ae140
push ecx
mov byte [esp + 0x1a0], 9
call fcn.5908b099
add esp, 8
test eax, eax
jne 0x59059aab
lea edx, [esp + 0x18]
push edx
call fcn.5900d660
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0xa
call fcn.590a2460
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], 9
call fcn.590a22e0
jmp 0x59059abc
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x1c]
push eax
call fcn.590a2460
push str..mli
lea ecx, [esp + 0x20]
call fcn.590a2ef0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x59059bcd
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x198], 0xb
mov bl, 0xc
test byte [esp + 0x50], 0x10
jne 0x59059b94
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x10]
push eax
call fcn.590a19b0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x198], bl
mov eax, dword [ecx - 8]
cmp eax, 4
jbe 0x59059b83
xor edx, edx
add eax, 0xfffffffc
mov dword [esp + 0x30], edx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], edx
call fcn.590a4900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 0xd
call fcn.590a2460
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.590a22e0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.590ccb40
add esp, 8
test eax, eax
jne 0x59059ba9
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], 0xb
call fcn.590a22e0
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebp
je 0x59059bbe
jmp 0x59059afb
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x198], 0xb
call fcn.590a22e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x198], 9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x198], 2
call fcn.590a22e0
cmp dword [esp + 0x14], ebp
je 0x59059cda
push 0x591ae140
lea ecx, [esp + 0x18]
call fcn.590a19b0
mov ecx, dword [esp + 0x1a0]
mov bl, 0xe
push 0x591ae140
push ecx
mov byte [esp + 0x1a0], bl
call fcn.5908b099
add esp, 8
test eax, eax
jne 0x59059c49
lea edx, [esp + 0x18]
push edx
call fcn.5900d660
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 0xf
call fcn.590a2460
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.590a22e0
jmp 0x59059c5a
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x14]
push eax
call fcn.590a2460
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push str._s.
push edx
call fcn.590a5140
mov eax, dword [0x591ae1c8]
add esp, 0xc
cmp eax, ebp
je 0x59059cbc
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.590a6d60
mov ecx, dword [eax]
mov byte [esp + 0x198], 0x10
push ecx
push str.strTempFilePath:_s
push str.strTempFilePath
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.590a7660
mov edx, dword [esp + 0x20]
push edx
call fcn.5900b110
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x198], 2
call fcn.590a22e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x198], 1
call fcn.590a22e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x198], 0
call fcn.590a22e0
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x198], 0xffffffff
call fcn.590a22e0
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4