Function at 0x408630
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42017c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2e8], edi
mov eax, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4086b0
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x54]
call fcn.004053a0
push 1
mov ebx, esi
mov byte [esp + 0x2ec], 1
call fcn.00409ee0
mov ecx, dword [esp + 0x60]
add ecx, 0xffffffff
cmp eax, ecx
je 0x4086f4
push 1
push 0x423050
mov ecx, esi
call fcn.004052d0
push 0x24c
lea edx, [esp + 0x8c]
push edi
push edx
mov dword [esp + 0x90], edi
call fcn.00413e90
mov eax, 7
add esp, 0xc
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x54]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f0], 3
call fcn.00404d90
push 1
push 0x423054
lea ecx, [esp + 0x38]
call fcn.004052d0
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x40876a
lea eax, [esp + 0x34]
lea ecx, [esp + 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov eax, 1
je 0x408899
lea esp, [esp]
cmp eax, edi
je 0x408899
mov ecx, 0x423058
lea eax, [esp + 0xb0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4087ca
cmp dx, di
je 0x4087c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4087ca
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4087a4
xor eax, eax
jmp 0x4087cf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x408885
mov ecx, 0x42305c
lea eax, [esp + 0xb0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408809
cmp dx, di
je 0x408805
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408809
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4087e3
xor eax, eax
jmp 0x40880e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x408885
lea edi, [esp + 0x68]
call fcn.00409d30
test byte [esp + 0x84], 0x10
je 0x40886f
push 1
push 0x423050
mov esi, edi
call fcn.004053a0
lea eax, [esp + 0xb0]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408840
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x70]
call fcn.004052d0
lea eax, [esp + 0x68]
push eax
lea esi, [esp + 0x14]
call fcn.00406080
lea ecx, [esp + 0x84]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edi, edi
jmp 0x408790
lea edx, [esp + 0x84]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x408790
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
xor ebx, ebx
call fcn.004019a0
test eax, eax
mov esi, dword [esp + 0x14]
jbe 0x408906
test esi, esi
je 0x4088d8
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4088e1
call fcn.00412b4f
mov esi, dword [esp + 0x14]
mov eax, dword [esi + edi + 0x14]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax*2 + 2]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edx
add ebx, 1
add edi, 0x1c
call fcn.004019a0
cmp ebx, eax
jb 0x4088b7
xor edi, edi
cmp esi, edi
je 0x40892a
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40892a
add dword [esp + 0x20], 2
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
cmp eax, edx
jae 0x4089ec
mov ebx, 8
cmp dword [esp + 0x80], ebx
mov dword [ecx], edx
jb 0x40895d
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004127aa
mov esi, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x48], ebx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
jb 0x408988
mov edx, dword [esp + 0x34]
push edx
call fcn.004127aa
mov esi, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x64], ebx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
jb 0x4089b0
mov eax, dword [esp + 0x50]
push eax
call fcn.004127aa
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, edi
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
je 0x4089e5
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
push ecx
mov eax, esi
call fcn.00406eb0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x408bc8
mov ebx, dword [esp + 0x24]
push eax
push edi
push ebx
call fcn.00413e90
add esp, 0xc
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x10]
xor ebx, ebx
call fcn.004019a0
test eax, eax
jbe 0x408aeb
test esi, esi
je 0x408a33
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408a3c
call fcn.00412b4f
mov esi, dword [esp + 0x14]
test esi, esi
mov eax, dword [esi + edi + 0x14]
mov dword [esp + 0x28], eax
je 0x408a65
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408a6e
call fcn.00412b4f
mov esi, dword [esp + 0x14]
cmp dword [esi + edi + 0x18], 8
jb 0x408a7b
mov esi, dword [esi + edi + 4]
jmp 0x408a7f
lea esi, [esi + edi + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea edx, [ecx + ecx + 2]
push edx
push esi
push eax
call fcn.00414cc0
mov esi, dword [esp + 0x20]
add esp, 0xc
test esi, esi
je 0x408abb
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408ac4
call fcn.00412b4f
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + edi + 0x14]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx*2 + 2]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
add ebx, 1
add edi, 0x1c
call fcn.004019a0
cmp ebx, eax
jb 0x408a12
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, 8
cmp dword [esp + 0x80], edi
mov dword [edx], ecx
jb 0x408b14
mov eax, dword [esp + 0x6c]
push eax
call fcn.004127aa
mov esi, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x48], edi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
jb 0x408b41
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004127aa
mov esi, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x408b69
mov edx, dword [esp + 0x50]
push edx
call fcn.004127aa
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
je 0x408bc6
mov ebx, dword [esp + 0x18]
cmp esi, ebx
je 0x408bbd
add esi, 0x18
lea esp, [esp]
cmp dword [esi], edi
jb 0x408ba0
mov eax, dword [esi - 0x14]
push eax
call fcn.004127aa
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], eax
mov word [esi - 0x14], ax
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, ebx
jne 0x408b90
mov esi, dword [esp + 0x14]
push esi
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0041288d
mov esp, ebp
pop ebp
ret 0xc