Function at 0x407030
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c0
call fcn.00411250
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x18b0], ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40705a
jmp 0x40743c
push 0x250
push 0
lea eax, [ebp - 0x87c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18a0], 0xffffffff
mov dword [ebp - 0x18ac], 0
xor ecx, ecx
mov word [ebp - 0x414], cx
push 0x206
push 0
lea edx, [ebp - 0x412]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00408e20
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
push str._s.
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x18a0], eax
cmp dword [ebp - 0x18a0], 0xffffffff
jne 0x407126
push 0x415478
call fcn.00406d00
add esp, 4
jmp 0x40743c
xorps xmm0, xmm0
movlpd qword [ebp - 0x18c0], xmm0
mov byte [ebp - 0x1881], 1
push 0x218
push 0
lea edx, [ebp - 0x62c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1004
push 0
lea eax, [ebp - 0x1880]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x87c]
push ecx
mov edx, dword [ebp - 0x18a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4073cc
lea eax, [ebp - 0x850]
mov dword [ebp - 0x188c], eax
mov dword [ebp - 0x1888], 0x41548c
mov ecx, dword [ebp - 0x1888]
mov dx, word [ecx]
mov word [ebp - 0x1896], dx
mov eax, dword [ebp - 0x188c]
cmp dx, word [eax]
jne 0x4071fc
cmp word [ebp - 0x1896], 0
je 0x4071f0
mov ecx, dword [ebp - 0x1888]
mov dx, word [ecx + 2]
mov word [ebp - 0x1898], dx
mov eax, dword [ebp - 0x188c]
cmp dx, word [eax + 2]
jne 0x4071fc
add dword [ebp - 0x1888], 4
add dword [ebp - 0x188c], 4
cmp word [ebp - 0x1898], 0
jne 0x407196
mov dword [ebp - 0x18a4], 0
jmp 0x407207
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x18a4], ecx
mov edx, dword [ebp - 0x18a4]
mov dword [ebp - 0x18b4], edx
cmp dword [ebp - 0x18b4], 0
je 0x4072bc
lea eax, [ebp - 0x850]
mov dword [ebp - 0x1894], eax
mov dword [ebp - 0x1890], 0x415490
mov ecx, dword [ebp - 0x1890]
mov dx, word [ecx]
mov word [ebp - 0x189a], dx
mov eax, dword [ebp - 0x1894]
cmp dx, word [eax]
jne 0x40729c
cmp word [ebp - 0x189a], 0
je 0x407290
mov ecx, dword [ebp - 0x1890]
mov dx, word [ecx + 2]
mov word [ebp - 0x189c], dx
mov eax, dword [ebp - 0x1894]
cmp dx, word [eax + 2]
jne 0x40729c
add dword [ebp - 0x1890], 4
add dword [ebp - 0x1894], 4
cmp word [ebp - 0x189c], 0
jne 0x407236
mov dword [ebp - 0x18a8], 0
jmp 0x4072a7
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x18a8], ecx
mov edx, dword [ebp - 0x18a8]
mov dword [ebp - 0x18b8], edx
cmp dword [ebp - 0x18b8], 0
jne 0x4072c1
jmp 0x407164
mov dword [ebp - 0x1880], 4
lea eax, [ebp - 0x850]
push eax
push 0x415498
lea ecx, [ebp - 0x62c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x87c]
and edx, 0x10
je 0x4072fe
mov dword [ebp - 0x424], 1
jmp 0x407341
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0x860]
xor ecx, ecx
mov edx, dword [ebp - 0x18c0]
add edx, 1
mov esi, dword [ebp - 0x18bc]
adc esi, 0
push esi
push edx
push ecx
push eax
call fcn.00411120
xor ecx, ecx
add eax, dword [ebp - 0x85c]
adc edx, ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], edx
mov edx, dword [ebp - 0x18ac]
add edx, 1
mov dword [ebp - 0x18ac], edx
mov ecx, 0x86
lea esi, [ebp - 0x62c]
lea edi, [ebp - 0x187c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1881]
push eax
push 0x1004
lea ecx, [ebp - 0x1880]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18b0]
call fcn.0040a000
push 0x250
push 0
lea eax, [ebp - 0x87c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x218
push 0
lea ecx, [ebp - 0x62c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1004
push 0
lea edx, [ebp - 0x1880]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x407164
mov dword [ebp - 0x1880], 4
mov dword [ebp - 0x424], 2
mov ecx, 0x86
lea esi, [ebp - 0x62c]
lea edi, [ebp - 0x187c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1881]
push eax
push 0x1004
lea ecx, [ebp - 0x1880]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18b0]
call fcn.0040a000
movzx eax, byte [ebp - 0x1881]
test eax, eax
je 0x40742f
push 0x4154a0
call fcn.00406d00
add esp, 4
jmp 0x40743c
push 0x4154bc
call fcn.00406d00
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004102f6
mov esp, ebp
pop ebp
ret 8