Function at 0x450070
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d710f
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x518f10]
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 + 0x18]
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.004b25f0
add esp, 0xc
push 0x4f4298
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x288]
push eax
call fcn.0042487b
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 0x45013c
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.00466ad0
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.004a35be
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x450189
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 0x4501ca
mov ecx, str.General
movzx edi, cx
push edi
call fcn.004ab4f3
test eax, eax
je 0x4501e4
push edi
push eax
mov ecx, esi
call fcn.00424cac
jmp 0x4501e4
push str.General
call fcn.004b1cba
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.0042522f
mov byte [ebp - 4], bl
push 1
mov byte [ebp - 4], 1
call fcn.0046b810
add esp, 0xc
cmp dword [ebp - 0x27c], 0xffffffff
je 0x45058d
mov dword [ebp - 0x270], 1
mov bl, 9
mov edi, edi
test byte [ebp - 0x264], 0x10
jne 0x45056a
push ecx
mov esi, esp
mov dword [ebp - 0x294], esp
mov dword [ebp - 0x268], esi
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45017f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4e1f68
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x450279
mov edx, ecx
movzx edi, dx
push edi
call fcn.004ab4f3
test eax, eax
je 0x450293
push edi
push eax
mov ecx, esi
call fcn.00424cac
jmp 0x450293
push 0x4e1f68
call fcn.004b1cba
add esp, 4
push eax
push 0x4e1f68
mov ecx, esi
call fcn.0042522f
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x26c], esi
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45017f
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 0x4502f4
mov edx, ecx
movzx edi, dx
push edi
call fcn.004ab4f3
test eax, eax
je 0x450312
push edi
push eax
mov ecx, esi
call fcn.00424cac
jmp 0x450312
lea eax, [ebp - 0x238]
push eax
call fcn.004b1cba
add esp, 4
push eax
lea ecx, [ebp - 0x238]
push ecx
mov ecx, esi
call fcn.0042522f
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.004252a0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.00466390
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.004252a0
lea edx, [ebp - 0x278]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00477050
add esp, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x26c], esp
mov dword [ebp - 0x268], esi
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45017f
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 0x4503da
mov edx, ecx
movzx edi, dx
push edi
call fcn.004ab4f3
test eax, eax
je 0x4503f4
push edi
push eax
mov ecx, esi
call fcn.00424cac
jmp 0x4503f4
push str.FilesDiff_PostScan_RecurseDirs:_adding_new_dir:__s
call fcn.004b1cba
add esp, 4
push eax
push str.FilesDiff_PostScan_RecurseDirs:_adding_new_dir:__s
mov ecx, esi
call fcn.0042522f
push ecx
mov byte [ebp - 4], 0xb
mov esi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x268], esi
call fcn.004a35be
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45017f
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 0x450453
mov ecx, str.General
movzx edi, cx
push edi
call fcn.004ab4f3
test eax, eax
je 0x45046d
push edi
push eax
mov ecx, esi
call fcn.00424cac
jmp 0x45046d
push str.General
call fcn.004b1cba
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.0042522f
mov byte [ebp - 4], 0xb
push 1
mov byte [ebp - 4], bl
call fcn.0046b810
mov edx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
push edx
mov edx, dword [ebp - 0x298]
push eax
mov eax, dword [ebp - 0x28c]
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.004252a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 0x10]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x268], esp
mov esi, esp
push eax
call fcn.004252a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x294], esp
mov esi, esp
push eax
call fcn.004252a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp + 8]
push 0
push eax
mov byte [ebp - 4], bl
call fcn.0044f420
and dword [ebp - 0x270], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
add esp, 0x30
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450544
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 0x45056a
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 0x450210
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 0x4505b0
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 0x4505d6
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.004b134c
mov esp, ebp
pop ebp
ret