Function at 0x407ea0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x274
mov eax, dword [0x42d0f0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x288]
push edi
mov edi, dword [esp + 0x288]
push edi
call sym.JkDefrag.exe_SlowDown
push esi
call fcn.004129b8
mov ebp, eax
xor ebx, ebx
add esp, 8
mov dword [esp + 0x10], ebp
cmp ebp, ebx
je 0x4085a7
push 0x5c
push ebp
call fcn.00412491
add esp, 8
cmp eax, ebx
je 0x407ef9
xor ecx, ecx
mov word [eax], cx
mov edx, dword [edi + 0x238]
mov eax, dword [edx + 0x5c]
mov ecx, dword [edi + 0x22c]
push esi
push eax
push ebx
push 3
call ecx
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x407f48
push ebp
jmp 0x40859f
xor esi, esi
lea ebx, [ebx]
mov eax, dword [edi + 8]
cmp dword [eax], ebx
jne 0x408527
mov ecx, 0x4240d0
lea eax, [esp + 0x5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f8a
cmp dx, bx
je 0x407f86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f8a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x407f64
xor eax, eax
jmp 0x407f8f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40850d
mov ecx, 0x424490
lea eax, [esp + 0x5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407fc6
cmp dx, bx
je 0x407fc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407fc6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x407fa0
xor eax, eax
jmp 0x407fcb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40850d
test dword [esp + 0x30], 0x400
jne 0x40850d
cmp esi, ebx
je 0x40804f
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x407ff5
push eax
call fcn.00412c14
add esp, 4
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x408005
push eax
call fcn.00412c14
add esp, 4
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x408015
push eax
call fcn.00412c14
add esp, 4
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x408025
push eax
call fcn.00412c14
add esp, 4
cmp dword [esi + 0x48], ebx
je 0x408046
lea ebx, [ebx]
mov eax, dword [esi + 0x48]
mov ebp, dword [eax + 0x10]
push eax
call fcn.00412c14
add esp, 4
mov dword [esi + 0x48], ebp
cmp ebp, ebx
jne 0x408030
push esi
call fcn.00412c14
add esp, 4
push 0x70
call fcn.00412a5f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x408527
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408080
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x5c]
lea ebp, [eax + 2]
jmp 0x4080a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4080a0
sub eax, ebp
sar eax, 1
lea ebp, [eax + edx + 2]
lea ecx, [ebp + ebp]
push ecx
call fcn.00412a5f
add esp, 4
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x408527
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
push ecx
push 0x424484
push ebp
push eax
call fcn.00411311
lea edx, [esp + 0x70]
push edx
call fcn.004129b8
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x408527
mov eax, dword [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408100
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x264]
lea ebp, [eax + 2]
jmp 0x408120
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408120
sub eax, ebp
sar eax, 1
lea ebp, [eax + edx + 2]
lea eax, [ebp + ebp]
push eax
call fcn.00412a5f
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x408527
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x264]
push ecx
push edx
push 0x424484
push ebp
push eax
call fcn.00411311
lea eax, [esp + 0x278]
push eax
call fcn.004129b8
add esp, 0x18
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x408527
mov ecx, dword [esp + 0x4c]
push 1
push ebx
push ebx
push ecx
call fcn.00412be0
mov ecx, dword [esp + 0x50]
xor ebp, ebp
add eax, ecx
adc edx, ebp
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x290]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], ebx
test byte [esp + 0x30], 0x10
je 0x4081d0
mov dword [esi + 0x5c], 1
push esi
push edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
call fcn.00404cd0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40850d
push ebp
push esi
push edi
call fcn.00404de0
add esp, 0xc
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40850d
mov ebx, 1
add dword [edi + 0x1b8], ebx
mov ebp, 0
adc dword [edi + 0x1bc], ebp
mov eax, dword [esi + 0x20]
add dword [edi + 0x1c8], eax
mov ecx, dword [esi + 0x24]
adc dword [edi + 0x1cc], ecx
mov edx, dword [esi + 0x28]
add dword [edi + 0x1d8], edx
mov eax, dword [esi + 0x2c]
adc dword [edi + 0x1dc], eax
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ecx
push edx
push ebp
push ebp
push esi
call sym.JkDefrag.exe_IsFragmented
add esp, 0x14
cmp eax, ebx
jne 0x40828a
add dword [edi + 0x1c0], ebx
adc dword [edi + 0x1c4], ebp
mov eax, dword [esi + 0x20]
add dword [edi + 0x1d0], eax
mov ecx, dword [esi + 0x24]
adc dword [edi + 0x1d4], ecx
mov edx, dword [esi + 0x28]
add dword [edi + 0x1e0], edx
mov eax, dword [esi + 0x2c]
adc dword [edi + 0x1e4], eax
mov ecx, dword [esi + 0x28]
add dword [edi + 0x1f8], ecx
mov edx, dword [esi + 0x2c]
mov eax, dword [edi + 0x228]
adc dword [edi + 0x1fc], edx
push esi
push edi
call eax
add esp, 8
cmp dword [esi + 0x5c], ebx
jne 0x40832c
add dword [edi + 0x1b0], ebx
mov eax, dword [esp + 0x10]
lea edx, [eax + 2]
adc dword [edi + 0x1b4], ebp
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4082c1
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x5c]
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4082e0
sub eax, ebx
sar eax, 1
lea ebx, [eax + edx + 4]
lea ecx, [ebx + ebx]
push ecx
call fcn.00412a5f
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40832c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
push eax
push 0x424474
push ebx
push ebp
call fcn.00411311
push esi
push ebp
push edi
call fcn.00407ea0
push ebp
call fcn.00412c14
add esp, 0x24
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
je 0x40850d
cmp dword [esi + 0x48], 0
je 0x40850d
mov edx, dword [edi + 0xc]
cmp dword [edx], 0
jne 0x408360
push 0
push 0
push 0
push 0
push 0
push esi
push edi
call sym.JkDefrag.exe_ColorizeItem
add esp, 0x1c
jmp 0x408369
push edi
call sym.JkDefrag.exe_ShowDiskmap
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
push esi
call sym.JkDefrag.exe_GetItemLcn
mov ecx, dword [edi + 0x238]
add esp, 4
push edx
mov edx, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x28]
push edx
mov edx, dword [ecx + 0x40]
push eax
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0x24
test dword [esp + 0x30], 0x800
je 0x4083be
mov ecx, dword [edi + 0x238]
mov edx, dword [ecx + 0x44]
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0xc
test dword [esp + 0x30], 0x4000
je 0x4083e0
mov ecx, dword [edi + 0x238]
mov edx, dword [ecx + 0x48]
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0xc
test dword [esp + 0x30], 0x1000
je 0x408402
mov ecx, dword [edi + 0x238]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0xc
test byte [esp + 0x30], 1
je 0x408421
mov ecx, dword [edi + 0x238]
mov edx, dword [ecx + 0x50]
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0xc
test dword [esp + 0x30], 0x200
je 0x408443
mov ecx, dword [edi + 0x238]
mov edx, dword [ecx + 0x54]
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0xc
test dword [esp + 0x30], 0x100
je 0x408465
mov ecx, dword [edi + 0x238]
mov edx, dword [ecx + 0x58]
mov eax, dword [edi + 0x22c]
push edx
push esi
push 4
call eax
add esp, 0xc
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x408493
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408493
push eax
push ecx
call fcn.00411440
add esp, 8
test eax, eax
jne 0x408493
mov ecx, dword [esi + 0x14]
push ecx
call fcn.00412c14
mov edx, dword [esi + 0xc]
add esp, 4
mov dword [esi + 0x14], edx
cmp dword [esi + 0xc], 0
jne 0x4084a3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4084a3
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4084b3
cmp dword [esi + 0x14], 0
jne 0x4084b3
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4084e1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4084e1
push eax
push ecx
call fcn.00411440
add esp, 8
test eax, eax
jne 0x4084e1
mov eax, dword [esi + 0x18]
push eax
call fcn.00412c14
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esi + 0x18], ecx
cmp dword [esi + 0x10], 0
jne 0x4084f1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4084f1
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408501
cmp dword [esi + 0x18], 0
jne 0x408501
mov dword [esi + 0x18], eax
push esi
push edi
call sym.JkDefrag.exe_TreeInsert
add esp, 8
xor esi, esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ebx, ebx
test eax, eax
jne 0x407f50
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
push edx
call fcn.00412c14
add esp, 4
cmp esi, ebx
je 0x4085a7
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x408553
push eax
call fcn.00412c14
add esp, 4
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x408563
push eax
call fcn.00412c14
add esp, 4
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x408573
push eax
call fcn.00412c14
add esp, 4
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x408583
push eax
call fcn.00412c14
add esp, 4
cmp dword [esi + 0x48], ebx
je 0x40859e
mov eax, dword [esi + 0x48]
mov edi, dword [eax + 0x10]
push eax
call fcn.00412c14
add esp, 4
mov dword [esi + 0x48], edi
cmp edi, ebx
jne 0x408588
push esi
call fcn.00412c14
add esp, 4
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411002
add esp, 0x274
ret