Function at 0x40db80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c456
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
xor eax, esp
push eax
lea eax, [esp + 0x4a4]
mov dword fs:[0], eax
cmp dword [0x478ab8], 0x10
mov eax, dword [0x478aa4]
mov esi, ecx
jae 0x40dbd0
mov eax, 0x478aa4
movzx ecx, word [esi + 0x8e0]
push ecx
push eax
lea edx, [esp + 0x3a4]
push str._sLIB_04XES.SIF
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x3a0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40dfc8
xor ebx, ebx
lea ecx, [esp + 0x18]
call fcn.00422af0
cmp dword [0x478ab8], 0x10
mov eax, dword [0x478aa4]
mov dword [esp + 0x4ac], ebx
jae 0x40dc37
mov eax, 0x478aa4
movzx ecx, word [esi + 0x8e0]
lea edx, [esp + 0x184]
push edx
push ecx
push eax
lea edx, [esp + 0x2a4]
push str._sLIB_04X_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x1c]
call fcn.00422390
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x40ddbb
mov edx, dword [esp + 0x24]
mov eax, edx
sub eax, ecx
sar eax, 5
cmp edi, eax
jae 0x40ddbb
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
cmp ecx, ebx
mov ax, word [ecx + ebp]
mov byte [esp + 0x4ac], 1
mov word [esp + 0x11c], ax
je 0x40dce5
sub edx, ecx
sar edx, 5
cmp edi, edx
jb 0x40dcee
call fcn.004402b5
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
lea ecx, [ecx + ebp + 4]
push ebx
push ecx
lea ecx, [esp + 0x12c]
call fcn.00402ad0
lea eax, [esp + 0x298]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40dd10
sub eax, edx
push eax
lea edx, [esp + 0x29c]
push edx
lea ecx, [esp + 0x144]
call fcn.00402bb0
lea eax, [esp + 0x11c]
push eax
lea ecx, [esi + 0x8d0]
mov byte [esp + 0x122], bl
call fcn.0040d760
cmp dword [esp + 0x154], 0x10
jb 0x40dd64
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0042f233
add esp, 4
cmp dword [esp + 0x138], 0x10
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
jb 0x40dd97
mov edx, dword [esp + 0x124]
push edx
call fcn.0042f233
add esp, 4
add edi, 1
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
add ebp, 0x20
jmp 0x40dc73
lea ecx, [esp + 0x18]
mov dword [esp + 0x4ac], 0xffffffff
call fcn.00422c10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40dc14
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40df64
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40df64
cmp byte [0x478a65], bl
je 0x40dfc4
xor edi, edi
xor ebp, ebp
cmp word [0x478a6a], bx
jne 0x40deb2
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40dfc4
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40dfc4
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40de9a
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40de9f
call fcn.004402b5
mov eax, dword [esi + 0x8d4]
mov byte [eax + ebp + 2], 1
add edi, 1
add ebp, 0x3c
jmp 0x40de40
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40dfc4
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40dfc4
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40df0c
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40df11
call fcn.004402b5
mov ecx, dword [esi + 0x8d4]
mov dx, word [0x478a6a]
cmp word [ecx + ebp], dx
jne 0x40df59
mov eax, ecx
cmp eax, ebx
je 0x40df49
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40df4e
call fcn.004402b5
mov eax, dword [esi + 0x8d4]
mov byte [eax + ebp + 2], 1
add edi, 1
add ebp, 0x3c
jmp 0x40deb2
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40dfc8
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x40dfc8
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40dfb5
mov ecx, dword [esi + 0x8d8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40dfba
call fcn.004402b5
mov edx, dword [esi + 0x8d4]
mov byte [edx + 2], 1
mov al, 1
jmp 0x40dfca
xor al, al
mov ecx, dword [esp + 0x4a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.0044017c
add esp, 0x49c
ret