Function at 0x40e030
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ccf6
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x4a4]
mov dword fs:[0], eax
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
mov esi, ecx
jae 0x40e080
mov eax, 0x477aa8
movzx ecx, word [esi + 0x8e0]
push ecx
push eax
push str._sLIB_04XES.SIF
lea edx, [esp + 0x3a8]
push 0x104
push edx
call fcn.00408330
add esp, 0x14
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 0x40e488
xor ebx, ebx
lea ecx, [esp + 0x18]
call fcn.00423030
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
mov dword [esp + 0x4ac], ebx
jae 0x40e0eb
mov eax, 0x477aa8
movzx ecx, word [esi + 0x8e0]
lea edx, [esp + 0x184]
push edx
push ecx
push eax
push str._sLIB_04X_s
lea edx, [esp + 0x2a8]
push 0x104
push edx
call fcn.00408330
add esp, 0x18
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x1c]
call fcn.004228d0
xor edi, edi
xor ebp, ebp
jmp 0x40e130
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x40e27b
mov edx, dword [esp + 0x24]
mov eax, edx
sub eax, ecx
sar eax, 5
cmp edi, eax
jae 0x40e27b
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 0x40e1a2
sub edx, ecx
sar edx, 5
cmp edi, edx
jb 0x40e1ab
call fcn.00440a4f
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
lea ecx, [ecx + ebp + 4]
push ebx
push ecx
lea ecx, [esp + 0x12c]
call fcn.00402c60
lea eax, [esp + 0x298]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40e1d0
sub eax, edx
push eax
lea edx, [esp + 0x29c]
push edx
lea ecx, [esp + 0x144]
call fcn.00402d40
lea eax, [esp + 0x11c]
push eax
lea ecx, [esi + 0x8d0]
mov byte [esp + 0x122], bl
call fcn.0040dc10
cmp dword [esp + 0x154], 0x10
jb 0x40e224
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0042f877
add esp, 4
cmp dword [esp + 0x138], 0x10
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
jb 0x40e257
mov edx, dword [esp + 0x124]
push edx
call fcn.0042f877
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 0x40e130
lea ecx, [esp + 0x18]
mov dword [esp + 0x4ac], 0xffffffff
call fcn.00423150
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e0c8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e424
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 0x40e424
cmp byte [0x477a65], bl
jne 0x40e484
xor edi, edi
xor ebp, ebp
cmp word [0x477a6c], bx
jne 0x40e372
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e484
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 0x40e484
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e35a
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 0x40e35f
call fcn.00440a4f
mov eax, dword [esi + 0x8d4]
mov byte [eax + ebp + 2], 1
add edi, 1
add ebp, 0x3c
jmp 0x40e300
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e484
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 0x40e484
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e3cc
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 0x40e3d1
call fcn.00440a4f
mov ecx, dword [esi + 0x8d4]
mov dx, word [0x477a6c]
cmp word [ecx + ebp], dx
jne 0x40e419
mov eax, ecx
cmp eax, ebx
je 0x40e409
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 0x40e40e
call fcn.00440a4f
mov eax, dword [esi + 0x8d4]
mov byte [eax + ebp + 2], 1
add edi, 1
add ebp, 0x3c
jmp 0x40e372
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e488
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 0x40e488
mov eax, dword [esi + 0x8d4]
cmp eax, ebx
je 0x40e475
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 0x40e47a
call fcn.00440a4f
mov edx, dword [esi + 0x8d4]
mov byte [edx + 2], 1
mov al, 1
jmp 0x40e48a
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.004404d4
add esp, 0x49c
ret