Function at 0x59023390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x59141803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
push esi
push edi
push 0x5919cc20
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], 1
call fcn.590994d0
mov eax, dword [esp + 0x19c]
mov bl, 2
push 0x5919cc20
push eax
mov byte [esp + 0x190], bl
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x5902341b
lea ecx, [esp + 0x18]
push ecx
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 3
call fcn.59099f80
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], bl
call fcn.59099e00
jmp 0x5902342c
lea edx, [esp + 0x19c]
lea ecx, [esp + 0x10]
push edx
call fcn.59099f80
mov eax, dword [esp + 0x1a0]
push 0x5919cc20
push eax
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59023455
push str.ContentBuf.mtmp
lea ecx, [esp + 0x14]
call fcn.5909aa10
jmp 0x59023466
lea ecx, [esp + 0x1a0]
push ecx
lea ecx, [esp + 0x14]
call fcn.5909aa70
xor esi, esi
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], esi
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x59023650
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x1a4]
mov esi, dword [esp + 0x198]
mov ebp, dword [esp + 0x194]
mov byte [esp + 0x188], 4
mov bl, 6
test byte [esp + 0x40], 0x10
jne 0x5902362d
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x20]
call fcn.590994d0
push 0x5919cc20
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], 5
call fcn.590994d0
mov edx, dword [esp + 0x19c]
push 0x5919cc20
push edx
mov byte [esp + 0x190], bl
call fcn.59082bc9
add esp, 8
test eax, eax
jne 0x59023545
lea eax, [esp + 0x20]
push eax
call fcn.5900d240
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], 7
call fcn.59099f80
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], bl
call fcn.59099e00
jmp 0x59023556
lea ecx, [esp + 0x19c]
push ecx
lea ecx, [esp + 0x18]
call fcn.59099f80
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call fcn.5909aa70
mov eax, dword [0x5919cca0]
test eax, eax
je 0x590235af
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call fcn.5909e880
mov ecx, dword [eax]
mov byte [esp + 0x188], 8
push ecx
push str.GetLastContentBufFile__strPath:_s_
push str.Combine
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], bl
call fcn.5909f180
mov edx, dword [esp + 0x190]
push edi
push ebp
push edx
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.590993d0
mov byte [esp + 0x198], bl
call fcn.590217c0
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
lea ecx, [esp + 0x2c]
call fcn.5909e880
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x190], 0xa
call fcn.590a5110
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], bl
call fcn.5909f180
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 5
call fcn.59099e00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 4
call fcn.59099e00
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x590234c5
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 1
call fcn.59099e00
lea ecx, [esp + 0x19c]
mov byte [esp + 0x188], 0
call fcn.59099e00
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x188], 0xffffffff
call fcn.59099e00
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x17c
ret