Function at 0x414100
Capabilities:
Enumerate files on windows
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4331a1
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov ecx, dword [esi + 8]
lea ebx, [esi + 8]
test ecx, ecx
je 0x414158
mov edx, dword [ebx + 4]
call fcn.004080b0
push dword [ebx]
call fcn.00420629
add esp, 4
mov dword [ebx], 0
lea edi, [esi + 4]
push ecx
mov edx, edi
lea ecx, [ebp - 0x280]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x268], edi
call fcn.004148a0
push esi
mov edx, eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0
call fcn.004147e0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4141b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x4141f4
xor esi, esi
jmp 0x4143a0
mov esi, dword [ebp - 0x264]
lea ebx, [ebx]
mov eax, dword [ebp - 0x260]
test eax, 0x400
jne 0x41437a
test al, 0x10
jne 0x41437a
lea ecx, [ebp - 0x234]
mov eax, 0x43ede8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41424a
test dx, dx
je 0x414246
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41424a
add eax, 4
add ecx, 4
test dx, dx
jne 0x414224
xor eax, eax
jmp 0x41424f
sbb eax, eax
or eax, 1
test eax, eax
je 0x41437a
lea eax, [ebp - 0x234]
mov ecx, 0x43edec
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x414288
test dx, dx
je 0x414284
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x414288
add ecx, 4
add eax, 4
test dx, dx
jne 0x414262
xor eax, eax
jmp 0x41428d
sbb eax, eax
or eax, 1
test eax, eax
je 0x41437a
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004028c0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x26c], eax
push 0x5c
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00407d30
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4142c6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004032b0
mov esi, dword [ebp - 0x26c]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414350
lea eax, [ebp - 0x278]
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x278], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x274], 0
jg 0x414341
jl 0x414338
cmp dword [ebp - 0x278], 2
ja 0x414341
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414350
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov ecx, ebx
call fcn.00407f20
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41436e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x268]
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414200
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x27c]
mov esi, dword [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x270]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4143c7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041fe49
mov esp, ebp
pop ebp
ret