Function at 0x45ec70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f298f
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x53d100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x284], eax
xor edi, edi
push 0x24c
lea ecx, [ebp - 0x260]
push edi
mov dword [ebp - 4], 1
push ecx
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x264], edi
call fcn.004cc1d0
add esp, 0xc
push 0x505f18
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x288]
push eax
call fcn.00424a39
mov eax, dword [eax]
add esp, 0xc
push edi
push edi
push edi
lea ecx, [ebp - 0x264]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
mov dword [ebp - 0x27c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ed3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push esi
push edx
push eax
push str.FilesDiff_PostScan_AddNewDir:_PhysDir_s__DispDir_s__hFind_x
push ecx
call fcn.00478210
add esp, 0x10
mov bl, 2
mov esi, esp
mov byte [ebp - 4], bl
mov dword [ebp - 0x280], esp
mov dword [ebp - 0x278], esi
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45ed89
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, str.General
shr eax, 0x10
mov byte [ebp - 4], 3
mov dword [ebp - 0x280], eax
cmp eax, edi
jne 0x45edca
mov ecx, str.General
movzx edi, cx
push edi
call fcn.004c463d
test eax, eax
je 0x45ede4
push edi
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x45ede4
push str.General
call fcn.004cb5ea
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], bl
push 1
mov byte [ebp - 4], 1
call fcn.0047d3f0
add esp, 0xc
cmp dword [ebp - 0x27c], 0xffffffff
je 0x45f187
mov dword [ebp - 0x270], 1
mov bl, 9
mov edi, edi
test byte [ebp - 0x264], 0x10
jne 0x45f164
push ecx
mov esi, esp
mov dword [ebp - 0x294], esp
mov dword [ebp - 0x268], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45ed7f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4fe58c
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x45ee79
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c463d
test eax, eax
je 0x45ee93
push edi
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x45ee93
push 0x4fe58c
call fcn.004cb5ea
add esp, 4
push eax
push 0x4fe58c
mov ecx, esi
call fcn.004253ae
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x26c], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45ed7f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x45eef4
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c463d
test eax, eax
je 0x45ef12
push edi
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x45ef12
lea eax, [ebp - 0x238]
push eax
call fcn.004cb5ea
add esp, 4
push eax
lea ecx, [ebp - 0x238]
push ecx
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.00477ad0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x274]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
add esp, 4
lea edi, [ebp - 0x278]
mov dword [esi], eax
call fcn.00489450
add esp, 4
mov byte [ebp - 4], bl
mov edx, dword [ebp + 0x10]
push edx
push ecx
mov esi, esp
mov dword [ebp - 0x26c], esp
mov dword [ebp - 0x268], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45ed7f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.FilesDiff_PostScan_RecurseDirs:_adding_new_dir:__s
mov byte [ebp - 4], 0xa
test ecx, 0xffff0000
jne 0x45efd9
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c463d
test eax, eax
je 0x45eff3
push edi
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x45eff3
push str.FilesDiff_PostScan_RecurseDirs:_adding_new_dir:__s
call fcn.004cb5ea
add esp, 4
push eax
push str.FilesDiff_PostScan_RecurseDirs:_adding_new_dir:__s
mov ecx, esi
call fcn.004253ae
push ecx
mov byte [ebp - 4], 0xb
mov esi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x268], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45ed7f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
cmp dword [ebp - 0x280], 0
mov byte [ebp - 4], 0xc
jne 0x45f052
mov ecx, str.General
movzx edi, cx
push edi
call fcn.004c463d
test eax, eax
je 0x45f06c
push edi
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x45f06c
push str.General
call fcn.004cb5ea
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 0xb
push 1
mov byte [ebp - 4], bl
call fcn.0047d3f0
mov edx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x298]
add esp, 0x10
push edx
mov edx, dword [ebp - 0x28c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
mov eax, dword [ebp - 0x278]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x268], esp
mov edi, esp
push eax
lea esi, [ebp - 0x264]
call fcn.0042541f
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x294], esp
mov edi, esp
push eax
call fcn.0042541f
mov edx, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
push edx
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0045eb20
and dword [ebp - 0x270], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
add esp, 0x28
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f13e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f164
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x264]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45ee10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f1aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f1d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cac83
mov esp, ebp
pop ebp
ret