Function at 0x498560
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d46b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x513b94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x278], ebx
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
push dword [esi + 4]
push ebx
call fcn.0041e460
push 0x5c
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
push edi
mov dword [ebx + 4], 0
call fcn.004a500e
add esp, 8
test eax, eax
je 0x4985cd
add eax, 2
mov dword [ebp - 0x264], eax
jmp 0x4985ef
push 0x2f
push edi
call fcn.004a500e
add esp, 8
test eax, eax
je 0x4985e7
add eax, 2
mov dword [ebp - 0x264], eax
jmp 0x4985ef
mov eax, edi
mov dword [ebp - 0x264], edi
push 0x2e
push eax
call fcn.004a500e
add esp, 8
mov dword [ebp - 0x270], eax
mov esi, eax
test eax, eax
je 0x498647
cmp eax, edi
jbe 0x49862e
mov ebx, edi
nop dword [eax]
movzx eax, word [esi - 2]
push eax
call fcn.004b497a
add esp, 4
test eax, eax
je 0x498628
add esi, 0xfffffffe
cmp esi, ebx
ja 0x498610
mov ebx, dword [ebp - 0x278]
cmp word [esi - 2], 0x2d
lea eax, [esi - 2]
mov ecx, dword [ebp - 0x270]
cmove ecx, eax
mov dword [ebp - 0x26c], ecx
jmp 0x498665
push 0
push dword [ebp - 0x264]
call fcn.004a500e
add esp, 8
mov dword [ebp - 0x270], eax
mov ecx, eax
mov dword [ebp - 0x26c], eax
sub ecx, edi
sar ecx, 1
mov eax, ecx
neg eax
sbb eax, eax
and eax, 2
push eax
push 0x4dd79c
lea eax, [ecx + ecx]
push eax
push edi
call fcn.0049c6b0
mov dword [ebp - 0x27c], eax
push 0x4e4e78
mov dword [ebp - 4], 0
call fcn.0049c580
push eax
push 0x4e4e78
call fcn.0049c710
add esp, 0x1c
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x27c]
call fcn.0049c250
mov esi, eax
mov edi, dword [ebp - 0x270]
push edi
mov byte [ebp - 4], 2
call fcn.0049c580
push eax
push edi
call fcn.0049c710
add esp, 0xc
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x284]
mov ecx, esi
push eax
call fcn.0049c250
mov ecx, dword [ebp - 0x268]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x498718
call fcn.0049c750
mov ecx, dword [ebp - 0x288]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x49872b
call fcn.0049c750
mov ecx, dword [ebp - 0x280]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x49873e
call fcn.0049c750
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x284]
call fcn.0049c120
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x290], eax
cmp eax, 0xffffffff
je 0x498955
mov eax, dword [ebp - 0x26c]
lea edi, [ebp - 0x234]
sub eax, dword [ebp - 0x264]
sar eax, 1
lea edi, [edi + eax*2]
mov dword [ebp - 0x28c], edi
mov esi, edi
cmp word [esi], 0x2d
jne 0x4987b7
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004b497a
add esp, 4
test eax, eax
je 0x4987b7
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004b497a
add esp, 4
test eax, eax
jne 0x4987a3
push dword [ebp - 0x270]
push esi
call fcn.004a8747
add esp, 8
test eax, eax
jne 0x498932
push edi
call fcn.0049c580
push eax
push edi
call fcn.0049c710
add esp, 0xc
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x27c]
call fcn.0049c250
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x498814
call fcn.0049c750
mov eax, dword [ebx]
xor edi, edi
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x274], eax
mov ecx, dword [eax + 4]
mov dword [ebp - 0x278], ecx
cmp byte [ecx + 0xd], 0
jne 0x498871
mov esi, ecx
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x278], esi
push ecx
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00496960
test al, al
je 0x49885c
mov esi, dword [esi + 8]
xor edi, edi
mov eax, dword [ebp - 0x274]
jmp 0x49886b
mov eax, esi
mov edi, 1
mov esi, dword [esi]
mov dword [ebp - 0x274], eax
cmp byte [esi + 0xd], 0
je 0x498833
cmp byte [eax + 0xd], 0
jne 0x498891
add eax, 0x10
mov ecx, ebx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00496960
test al, al
je 0x498915
cmp dword [ebx + 4], 0xccccccc
je 0x49899c
mov eax, dword [ebx]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x298], ebx
push 0x14
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x294], 0
call fcn.004a0e21
mov esi, eax
add esp, 4
mov dword [ebp - 0x294], esi
mov ecx, dword [ebp - 0x264]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x264]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x4988e8
call fcn.0049c480
mov eax, dword [ebp - 0x274]
mov ecx, ebx
push esi
mov dword [esi], eax
push edi
push dword [ebp - 0x278]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], 0
mov dword [ebp - 0x294], 0
call fcn.0041f640
mov ecx, dword [ebp - 0x264]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x498928
call fcn.0049c750
mov edi, dword [ebp - 0x28c]
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x498787
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x284]
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x498968
call fcn.0049c750
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 4], 0x14
test ecx, ecx
je 0x49897e
call fcn.0049c750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret 4
call fcn.0041f830
int3