Function at 0x410850
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x440492
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x4530e4]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4530e4]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3bc]
mov ebp, dword [esp + 0x3b8]
xor edi, edi
xor ecx, ecx
mov word [esp + 0x9c], cx
mov ecx, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4108c0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x9c]
call fcn.00408320
mov dword [esp + 0x3b0], edi
mov eax, dword [esp + 0xac]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4108f6
call fcn.0042bcc3
mov eax, dword [esp + 0x9c]
mov ebx, 8
cmp dword [esp + 0xb0], ebx
jae 0x410912
lea eax, [esp + 0x9c]
mov edx, 0x5c
cmp dx, word [eax + esi*2]
je 0x41092f
push edx
lea eax, [edx - 0x5b]
lea edi, [esp + 0x9c]
call fcn.00401680
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x68], ax
mov esi, 7
push edi
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
call fcn.00408090
push 3
push 0x44685c
lea eax, [esp + 0x68]
mov byte [esp + 0x3b8], 1
call fcn.00405a80
push 0x24c
lea ecx, [esp + 0x15c]
push edi
push ecx
mov dword [esp + 0x160], edi
call fcn.0042d060
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], ebx
jae 0x41099c
lea eax, [esp + 0x64]
lea edx, [esp + 0x154]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4109f0
cmp dword [esp + 0x78], ebx
jb 0x4109c7
mov eax, dword [esp + 0x64]
push eax
call fcn.0042bb4c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
cmp dword [esp + 0xb0], ebx
jb 0x410dd6
mov edx, dword [esp + 0x9c]
push edx
jmp 0x410dce
call fcn.0041acf0
call fcn.0041e290
mov dword [esp + 0x14], eax
jmp 0x410a05
xor edi, edi
lea esi, [edi + 7]
lea ecx, [esp + 0x180]
mov eax, 0x4461ec
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410a37
cmp dx, di
je 0x410a33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410a37
add eax, 4
add ecx, 4
cmp dx, di
jne 0x410a11
xor eax, eax
jmp 0x410a3c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x410d6c
lea ecx, [esp + 0x180]
mov eax, 0x4461f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410a76
cmp dx, di
je 0x410a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410a76
add eax, 4
add ecx, 4
cmp dx, di
jne 0x410a50
xor eax, eax
jmp 0x410a7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x410d6c
test dword [esp + 0x154], 0x106
jne 0x410d6c
cmp dword [esp + 0x170], edi
jne 0x410d6c
cmp dword [esp + 0x174], 0xfa00000
ja 0x410d6c
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x4c], ax
push edi
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
call fcn.00408090
lea eax, [esp + 0x180]
mov byte [esp + 0x3b0], 2
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x410ae6
sub eax, ecx
sar eax, 1
push eax
lea ecx, [esp + 0x184]
push ecx
lea eax, [esp + 0x4c]
call fcn.00405a80
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x48]
call fcn.00410470
mov byte [esp + 0x3b0], 3
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x30]
push eax
mov eax, dword [eax]
push ecx
push eax
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
mov ebx, 0xf
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.0040a3e0
lea edi, [esp + 0x68]
call fcn.00418bb0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [ebp + 0x44]
mov eax, dword [ebp + 0x30]
add esp, 0x2c
test ecx, ecx
je 0x410b75
cmp ecx, eax
je 0x410b7a
call fcn.0042bcc3
cmp esi, edi
je 0x410bcc
mov eax, dword [esp + 0x48]
mov esi, 8
cmp dword [esp + 0x5c], esi
jae 0x410b91
lea eax, [esp + 0x48]
push eax
call fcn.00409db0
add esp, 4
cmp dword [esp + 0x94], 0x10
jb 0x410bb4
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0042bb4c
add esp, 4
mov byte [esp + 0x3b0], 1
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x94], ebx
jmp 0x410d4a
lea eax, [esp + 0xb4]
call fcn.0041a110
mov byte [esp + 0x3b0], 4
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x410bef
lea eax, [esp + 0x48]
xor ecx, ecx
mov word [esp + 0x24], cx
mov ecx, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
lea esi, [ecx + 2]
jmp 0x410c10
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410c10
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x24]
call fcn.00408320
mov edx, esi
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x15c]
mov byte [esp + 0x3b8], 5
call fcn.0041d910
test eax, eax
mov edi, 8
sete bl
mov byte [esp + 0x3b0], 4
cmp dword [esp + 0x38], edi
jb 0x410c71
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042bb4c
add esp, 4
mov eax, dword [esp + 0x48]
test bl, bl
je 0x410cec
cmp dword [esp + 0x5c], edi
jae 0x410c83
lea eax, [esp + 0x48]
push eax
call fcn.00409db0
add esp, 4
lea esi, [esp + 0xb4]
call fcn.0040ffd0
cmp dword [esp + 0x94], 0x10
jb 0x410cb2
mov edx, dword [esp + 0x80]
push edx
call fcn.0042bb4c
add esp, 4
mov byte [esp + 0x3b0], 1
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
cmp dword [esp + 0x5c], edi
jb 0x410d6c
mov eax, dword [esp + 0x48]
push eax
jmp 0x410d64
cmp dword [esp + 0x5c], edi
jae 0x410cf6
lea eax, [esp + 0x48]
push eax
call fcn.00409db0
add esp, 4
lea edx, [esp + 0xb4]
mov ecx, ebp
call fcn.00410680
lea esi, [esp + 0xb4]
call fcn.0040ffd0
cmp dword [esp + 0x94], 0x10
jb 0x410d33
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0042bb4c
add esp, 4
mov byte [esp + 0x3b0], 1
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x94], 0xf
mov byte [esp + 0x80], 0
mov dword [esp + 0x90], 0
jb 0x410d6c
mov edx, dword [esp + 0x48]
push edx
call fcn.0042bb4c
add esp, 4
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410a00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x410da6
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042bb4c
add esp, 4
xor edx, edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], dx
cmp dword [esp + 0xb0], esi
jb 0x410dd6
mov eax, dword [esp + 0x9c]
push eax
call fcn.0042bb4c
add esp, 4
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.0042bb57
add esp, 0x3a0
ret 8