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

Disassembly:
push 0xffffffffffffffff
push 0x59148388
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.590994d0
push 0x59179380
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 1
call fcn.5909aa10
push str..mtmp
lea ecx, [esp + 0x24]
call fcn.5909aa10
mov eax, dword [esp + 0x20]
push eax
call fcn.5900aaa0
add esp, 4
lea ecx, [esp + 0x24]
push 0x5919cc20
call fcn.590994d0
mov ecx, dword [esp + 0x1a0]
push 0x5919cc20
push ecx
mov byte [esp + 0x1a0], 2
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59054889
lea edx, [esp + 0x28]
push edx
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 3
call fcn.59099f80
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 2
call fcn.59099e00
jmp 0x5905489a
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x24]
push eax
call fcn.59099f80
push str.ContentBuf.mtmp
lea ecx, [esp + 0x28]
call fcn.5909aa10
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 0x59054a39
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 0x59054a0a
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x28]
push eax
call fcn.590994d0
push 0x5919cc20
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 5
call fcn.590994d0
mov ecx, dword [esp + 0x1a0]
push 0x5919cc20
push ecx
mov byte [esp + 0x1a0], bl
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59054978
lea edx, [esp + 0x3c]
push edx
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 7
call fcn.59099f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], bl
call fcn.59099e00
jmp 0x59054989
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x10]
push eax
call fcn.59099f80
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.5909aa70
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x20], ebp
call fcn.5909e880
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov byte [esp + 0x1a0], 8
call fcn.5900d5c0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.5909f180
cmp dword [esp + 0x1c], ebp
jne 0x590549e4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x590549e8
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], 5
call fcn.59099e00
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 4
call fcn.59099e00
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebp
jne 0x590548f8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x198], 2
cmp eax, ebp
je 0x59054cc9
push 0x5919cc20
lea ecx, [esp + 0x20]
call fcn.590994d0
mov ecx, dword [esp + 0x1a0]
push 0x5919cc20
push ecx
mov byte [esp + 0x1a0], 9
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59054a9a
lea edx, [esp + 0x18]
push edx
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0xa
call fcn.59099f80
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], 9
call fcn.59099e00
jmp 0x59054aab
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x1c]
push eax
call fcn.59099f80
push str..mli
lea ecx, [esp + 0x20]
call fcn.5909aa10
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x59054bbc
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 0x59054b83
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x10]
push eax
call fcn.590994d0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x198], bl
mov eax, dword [ecx - 8]
cmp eax, 4
jbe 0x59054b72
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.5909c420
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 0xd
call fcn.59099f80
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.59099e00
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.590b45a0
add esp, 8
test eax, eax
jne 0x59054b98
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], 0xb
call fcn.59099e00
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebp
je 0x59054bad
jmp 0x59054aea
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x198], 0xb
call fcn.59099e00
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.59099e00
cmp dword [esp + 0x14], ebp
je 0x59054cc9
push 0x5919cc20
lea ecx, [esp + 0x18]
call fcn.590994d0
mov ecx, dword [esp + 0x1a0]
mov bl, 0xe
push 0x5919cc20
push ecx
mov byte [esp + 0x1a0], bl
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59054c38
lea edx, [esp + 0x18]
push edx
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 0xf
call fcn.59099f80
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.59099e00
jmp 0x59054c49
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x14]
push eax
call fcn.59099f80
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push str._s.
push edx
call fcn.5909cc60
mov eax, dword [0x5919cca0]
add esp, 0xc
cmp eax, ebp
je 0x59054cab
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.5909e880
mov ecx, dword [eax]
mov byte [esp + 0x198], 0x10
push ecx
push str.strTempFilePath:_s
push str.strTempFilePath
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], bl
call fcn.5909f180
mov edx, dword [esp + 0x20]
push edx
call fcn.5900aaa0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x198], 2
call fcn.59099e00
lea ecx, [esp + 0x24]
mov byte [esp + 0x198], 1
call fcn.59099e00
lea ecx, [esp + 0x20]
mov byte [esp + 0x198], 0
call fcn.59099e00
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x198], 0xffffffff
call fcn.59099e00
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4