Function at 0x411e00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
push 4
mov dword [esp + 0x30], edx
mov ebx, ecx
call fcn.0041f424
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4121fc
mov dword [eax], 0
xor ecx, ecx
movzx edx, word [ebx]
mov dword [esp + 0x18], ecx
test dx, dx
je 0x4121a6
mov ecx, edx
xor esi, esi
movzx ecx, cx
push 8
push ecx
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x411e79
movzx eax, word [ebx]
push 0x20
push eax
call fcn.0041f340
add esp, 8
test eax, eax
je 0x411e87
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x411e58
movzx eax, word [ebx]
mov edi, ebx
mov dword [esp + 0x14], ebx
mov ecx, eax
cmp eax, 0x2f
jne 0x411ea2
movzx ecx, word [ebx + 2]
add ebx, 2
mov dword [esp + 0x14], ebx
push 0x157
push ecx
call fcn.0041f340
add esp, 8
test eax, eax
je 0x411f0e
movzx ecx, word [ebx]
xor eax, eax
cmp ecx, 0x22
sete al
xor esi, eax
jne 0x411ee4
push 8
push ecx
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x411f03
movzx eax, word [ebx]
cmp eax, 0x2f
je 0x411f03
cmp dword [ebp + 0xc], esi
je 0x411ee4
cmp eax, 0x2b
je 0x411f03
movzx eax, word [ebx + 2]
add ebx, 2
push 0x157
push eax
mov dword [esp + 0x1c], ebx
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x411eb4
jmp 0x411f0e
cmp ebx, edi
jne 0x411f16
add ebx, 2
mov dword [esp + 0x14], ebx
cmp ebx, edi
je 0x412190
mov eax, ebx
sub eax, edi
sar eax, 1
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
call fcn.0041f424
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4121fc
push esi
push edi
push eax
call fcn.0041ec00
mov edx, dword [esp + 0x18]
xor eax, eax
add esp, 0xc
mov ecx, edx
mov word [esi + edx], ax
mov esi, edx
movzx eax, word [edx]
test ax, ax
je 0x411f7e
mov edx, eax
nop word [eax + eax]
cmp dx, 0x22
je 0x411f6c
mov word [ecx], dx
add ecx, 2
movzx eax, word [esi + 2]
add esi, 2
mov edx, eax
test ax, ax
jne 0x411f60
mov edx, dword [esp + 0xc]
xor eax, eax
mov word [ecx], ax
cmp dword [ebp + 8], eax
je 0x41216a
mov eax, 0x2f
cmp ax, word [edi]
je 0x41216a
push 0x2a
push edx
call fcn.0041de51
mov edi, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x411fc0
push 0x3f
push edi
call fcn.0041de51
add esp, 8
test eax, eax
je 0x41216e
push 0x5c
push edi
call fcn.0041df18
mov esi, eax
add esp, 8
test esi, esi
je 0x41200d
sub esi, edi
sar esi, 1
lea ecx, [esi*2 + 4]
push ecx
call fcn.0041f424
mov edi, eax
mov dword [esp + 0x20], eax
add esp, 4
test edi, edi
je 0x4121c1
lea ecx, [esi + 1]
push ecx
push dword [esp + 0x10]
push edi
call fcn.0041ec00
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 + 2], ax
jmp 0x412013
xor edi, edi
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x412140
mov ebx, eax
test edi, edi
je 0x412101
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412040
sub ecx, edx
lea edx, [esp + 0x5c]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412056
sub edx, esi
sar edx, 1
lea eax, [edx + ecx]
lea eax, [eax*2 + 2]
push eax
call fcn.0041f424
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x412118
mov edx, esi
mov eax, edi
sub edx, edi
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x412090
lea edx, [esp + 0x5c]
mov ecx, edx
mov dword [esp + 0x24], ecx
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4120b0
sub edx, ecx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4120c0
mov esi, dword [esp + 0x24]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push edi
call fcn.00411d50
push edi
mov esi, eax
call fcn.0041f3e5
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x412118
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00411d50
add esp, 4
mov esi, eax
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x412130
test esi, esi
jne 0x412032
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x14]
jmp 0x412153
push esi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00411d50
add esp, 4
mov esi, eax
test edi, edi
je 0x412160
push edi
call fcn.0041f3e5
add esp, 4
test esi, esi
je 0x4121c1
mov edi, dword [esp + 0xc]
jmp 0x412187
mov edi, dword [esp + 0xc]
push edi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00411d50
add esp, 4
test eax, eax
je 0x412213
push edi
call fcn.0041f3e5
add esp, 4
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x411e53
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call fcn.0041f3e5
mov edi, dword [esp + 0x14]
add esp, 4
test edi, edi
je 0x4121fc
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x4121f3
nop dword [eax]
push eax
call fcn.0041f3e5
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x4121e0
push edi
call fcn.0041f3e5
add esp, 4
mov ecx, dword [esp + 0x284]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push edi
call fcn.0041f3e5
mov edi, dword [esp + 0x14]
add esp, 4
test edi, edi
je 0x4121fc
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x4121f3
nop dword [eax]
push eax
call fcn.0041f3e5
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x412230
jmp 0x4121f3