Function at 0x41a240
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x374
push esi
push edi
lea edi, [ebp - 0x380]
mov ecx, 0xdd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x48d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x340], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x278], xmm0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x298]
call fcn.00401d50
mov dword [ebp - 4], 0
push 0x468f90
lea ecx, [ebp - 0x298]
call fcn.00407570
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.00401d50
mov byte [ebp - 4], 1
push 0x468fb0
lea ecx, [ebp - 0x2b8]
call fcn.00407570
mov esi, esp
lea edx, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x298]
call fcn.00401c30
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.00429e23
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x41a36f
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00429e23
push eax
lea ecx, [ebp - 0x298]
call fcn.00401c30
push eax
push str.Failed_to_get_directory_handle__s___d_
push 0x469024
call fcn.004146d0
push eax
call fcn.00414b70
add esp, 0x14
mov byte [ebp - 0x321], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b8]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.00401c90
mov al, byte [ebp - 0x321]
jmp 0x41a8f2
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x298]
call fcn.004075e0
mov byte [ebp - 0x2bd], 1
movzx ecx, byte [ebp - 0x2bd]
test ecx, ecx
je 0x41a8b1
mov dword [ebp - 0x344], 0x469060
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
mov cx, word [eax]
mov word [ebp - 0x34a], cx
mov edx, dword [ebp - 0x344]
cmp cx, word [edx]
jne 0x41a413
cmp word [ebp - 0x34a], 0
je 0x41a407
mov eax, dword [ebp - 0x348]
mov cx, word [eax + 2]
mov word [ebp - 0x34c], cx
mov edx, dword [ebp - 0x344]
cmp cx, word [edx + 2]
jne 0x41a413
add dword [ebp - 0x348], 4
add dword [ebp - 0x344], 4
cmp word [ebp - 0x34c], 0
jne 0x41a3ad
mov dword [ebp - 0x350], 0
jmp 0x41a41e
sbb eax, eax
or eax, 1
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x354], ecx
cmp dword [ebp - 0x354], 0
je 0x41a7f6
mov dword [ebp - 0x358], 0x469074
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x35c], edx
mov eax, dword [ebp - 0x35c]
mov cx, word [eax]
mov word [ebp - 0x35e], cx
mov edx, dword [ebp - 0x358]
cmp cx, word [edx]
jne 0x41a4b3
cmp word [ebp - 0x35e], 0
je 0x41a4a7
mov eax, dword [ebp - 0x35c]
mov cx, word [eax + 2]
mov word [ebp - 0x360], cx
mov edx, dword [ebp - 0x358]
cmp cx, word [edx + 2]
jne 0x41a4b3
add dword [ebp - 0x35c], 4
add dword [ebp - 0x358], 4
cmp word [ebp - 0x360], 0
jne 0x41a44d
mov dword [ebp - 0x364], 0
jmp 0x41a4be
sbb eax, eax
or eax, 1
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
cmp dword [ebp - 0x368], 0
je 0x41a7f6
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x2b8]
call fcn.00407570
mov eax, dword [ebp - 0x268]
and eax, 0x10
je 0x41a68a
movzx ecx, byte [ebp + 0x20]
test ecx, ecx
jne 0x41a565
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.00401cd0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x340]
or eax, 1
mov dword [ebp - 0x340], eax
lea ecx, [ebp - 0x32c]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00419720
push eax
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00419e80
mov ecx, eax
call fcn.00417c00
movzx ecx, al
test ecx, ecx
jne 0x41a565
mov dword [ebp - 0x36c], 0
jmp 0x41a56f
mov dword [ebp - 0x36c], 1
mov dl, byte [ebp - 0x36c]
mov byte [ebp - 0x322], dl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x340]
and eax, 1
je 0x41a59f
and dword [ebp - 0x340], 0xfffffffe
lea ecx, [ebp - 0x2d8]
call fcn.00401c90
movzx ecx, byte [ebp - 0x322]
test ecx, ecx
je 0x41a685
lea edx, [ebp - 0x278]
push edx
lea eax, [ebp - 0x2b8]
push eax
call fcn.00419800
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41a62e
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x2f0]
call fcn.00401cd0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00417ca0
mov ecx, dword [ebp - 0x278]
mov dword [eax], ecx
mov edx, dword [ebp - 0x274]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x278]
mov edx, dword [eax + 4]
adc edx, dword [ebp - 0x274]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
call fcn.00401c90
jmp 0x41a685
lea ecx, [ebp - 0x2b8]
call fcn.00401c30
push eax
push str.Failed_to_get_folder_size___s_
push 0x46910c
call fcn.004146d0
push eax
call fcn.00414b70
add esp, 0x10
mov byte [ebp - 0x32d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b8]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.00401c90
mov al, byte [ebp - 0x32d]
jmp 0x41a8f2
jmp 0x41a7e4
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
jne 0x41a6f7
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x308]
call fcn.00401cd0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x340]
or eax, 2
mov dword [ebp - 0x340], eax
lea ecx, [ebp - 0x338]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00419720
push eax
lea edx, [ebp - 0x308]
push edx
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00419e80
mov ecx, eax
call fcn.00417c00
movzx ecx, al
test ecx, ecx
jne 0x41a6f7
mov dword [ebp - 0x370], 0
jmp 0x41a701
mov dword [ebp - 0x370], 1
mov dl, byte [ebp - 0x370]
mov byte [ebp - 0x32e], dl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x340]
and eax, 2
je 0x41a731
and dword [ebp - 0x340], 0xfffffffd
lea ecx, [ebp - 0x308]
call fcn.00401c90
movzx ecx, byte [ebp - 0x32e]
test ecx, ecx
je 0x41a7e4
mov edx, dword [ebp - 0x24c]
xor eax, eax
push 1
push 0
push eax
push edx
call fcn.0042a440
xor ecx, ecx
add eax, dword [ebp - 0x248]
mov dword [ebp - 0x378], eax
adc edx, ecx
mov dword [ebp - 0x374], edx
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.0040e9f0
add esp, 0xc
mov dword [ebp - 0x37c], eax
mov edx, dword [ebp - 0x37c]
mov dword [ebp - 0x380], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x380]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00417ca0
mov ecx, dword [ebp - 0x378]
mov dword [eax], ecx
mov edx, dword [ebp - 0x374]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x378]
mov edx, dword [eax + 4]
adc edx, dword [ebp - 0x374]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x320]
call fcn.00401c90
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.004075e0
mov esi, esp
lea edx, [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.00429e23
test eax, eax
jne 0x41a8ac
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00429e23
cmp eax, 0x12
jne 0x41a835
mov byte [ebp - 0x2bd], 0
jmp 0x41a8ac
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00429e23
push eax
lea ecx, [ebp - 0x298]
call fcn.00401c30
push eax
push str.Error_occurred_in_enumerating__s___d_
push 0x4691fc
call fcn.004146d0
push eax
call fcn.00414b70
add esp, 0x14
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.00429e23
mov byte [ebp - 0x339], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b8]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.00401c90
mov al, byte [ebp - 0x339]
jmp 0x41a8f2
jmp 0x41a388
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.00429e23
mov byte [ebp - 0x33a], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b8]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.00401c90
mov al, byte [ebp - 0x33a]
push edx
mov ecx, ebp
push eax
lea edx, [0x41a92c]
call fcn.00429dcb
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429e52
add esp, 0x380
cmp ebp, esp
call fcn.00429e23
mov esp, ebp
pop ebp
ret