Function at 0x498410
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd44f
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x693f30]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2b0], 0
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x2c0], ecx
jne 0x498464
xor al, al
jmp 0x49874f
push eax
lea ecx, [ebp - 0x28]
call fcn.004057d0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2ac], ecx
lea edx, [ecx - 1]
cmp ecx, edx
jbe 0x49876b
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp ebx, 8
mov dword [ebp - 0x2bc], esi
cmovae eax, esi
cmp word [eax + edx*2], 0x5c
je 0x4985d4
cmp ecx, ebx
jae 0x4984d6
lea eax, [ecx + 1]
cmp ebx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x2ac], ecx
jmp 0x4985d4
mov edx, ecx
mov ecx, accept
mov eax, ecx
mov dword [ebp - 0x2b0], edx
sub eax, edx
cmp eax, 1
jb 0x498770
lea esi, [edx + 1]
mov eax, ebx
mov ebx, esi
mov dword [ebp - 0x2ac], esi
or ebx, 7
mov dword [ebp - 0x2b8], eax
cmp ebx, ecx
jbe 0x49850e
mov ebx, ecx
jmp 0x498526
mov edx, eax
shr edx, 1
sub ecx, edx
cmp eax, ecx
jbe 0x49851f
mov ebx, accept
jmp 0x498526
add eax, edx
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406140
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2b0]
add esi, esi
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b8], 8
mov dword [ebp - 0x14], ebx
push esi
jb 0x4985af
push dword [ebp - 0x2bc]
push eax
call fcn.005a4460
mov eax, dword [ebp - 0x2b4]
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
mov dword [eax + esi], 0x5c
mov eax, dword [ebp - 0x2b8]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49859d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498775
push edx
push ecx
call fcn.005a242d
mov esi, dword [ebp - 0x2b4]
add esp, 8
jmp 0x4985cb
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.005a4460
mov eax, dword [ebp - 0x2b4]
add esp, 0xc
mov dword [eax + esi], 0x5c
mov esi, eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x28], esi
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x58], ax
lea eax, [ecx + 3]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x2b0], 1
call fcn.00405560
cmp ebx, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae eax, esi
mov esi, dword [ebp - 0x2ac]
push esi
push eax
call fcn.004056a0
push 3
push 0x640388
lea ecx, [ebp - 0x58]
call fcn.004056a0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004040f0
cmp esi, 0xffffffff
jne 0x49865d
xor bl, bl
jmp 0x498745
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x2a8], 0x10
jne 0x49872a
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x2c], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498690
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00405fb0
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], 0
je 0x4986d2
push 0
push eax
call fcn.004987f0
cmp eax, 0xffffffff
je 0x4986f0
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 4]
push ecx
cmp dword [edi + 8], eax
je 0x4986e8
mov ecx, eax
call fcn.004057d0
add dword [edi + 4], 0x18
jmp 0x4986f0
push eax
mov ecx, edi
call fcn.00498020
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x49872a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x498720
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498775
push edx
push ecx
call fcn.005a242d
add esp, 8
lea eax, [ebp - 0x2a8]
push eax
push esi
call ebx
test eax, eax
jne 0x498663
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.004040f0
mov al, bl
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.005a1c7e
mov esp, ebp
pop ebp
ret
call fcn.0040f270
call fcn.004033f0
call fcn.005a7b3f
int3