Function at 0x411390
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506c9c
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x10]
xor eax, eax
cmp edi, eax
je 0x4118b6
cmp dword [edi + 4], eax
je 0x4118b6
mov byte [esp + 0x40], al
mov dword [esp + 0x3c], eax
mov dword [esp + 0x508], eax
mov esi, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x24]
mov dword [ebx + 0x20], edx
cmp eax, 0xd
je 0x411839
cmp eax, 0x14
jne 0x4118a9
lea eax, [esp + 0x24]
push eax
call fcn.004704a0
lea ebx, [esi + 0x38]
push ebx
lea ecx, [esp + 0x180]
call fcn.00434b00
push 0x5183cc
push 0x51620c
lea edx, [esp + 0x184]
mov byte [esp + 0x510], 2
call fcn.004351e0
add esp, 8
cmp byte [esp + 0x298], 0
lea eax, [esp + 0x188]
jne 0x41146e
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x2a4]
push ecx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
jne 0x4114b0
lea ecx, [esp + 0x17c]
call fcn.00434b70
lea esi, [esp + 0x24]
call fcn.00411f10
lea ecx, [esp + 0x3c]
call fcn.00433d50
mov al, 1
jmp 0x4118b8
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
jmp 0x4114c0
cmp dword [esp + 0x2a4], 0x10
je 0x4115b8
lea eax, [esp + 0x2d0]
lea edx, [eax + 2]
jmp 0x4114e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4114e0
sub eax, edx
sar eax, 1
push 0x2e
lea edx, [esp + eax*2 + 0x2d4]
push edx
lea eax, [esp + 0x2d8]
push eax
call esi
test eax, eax
je 0x4115b8
push str..png
push eax
call fcn.004c3add
add esp, 8
test eax, eax
jne 0x4115b8
lea ecx, [esp + 0x54]
call fcn.004349d0
mov byte [esp + 0x508], 3
mov edx, dword [esp + 0x2b4]
mov ecx, dword [esp + 0x2b0]
mov dword [esp + 0x50], edx
mov eax, ebx
lea edx, [esp + 0x54]
mov dword [esp + 0x4c], ecx
call fcn.00434c20
push 0x516164
push 0x51620c
lea edx, [esp + 0x5c]
call fcn.004351e0
lea eax, [esp + 0x2d8]
push eax
push 0x51620c
lea edx, [esp + 0x64]
call fcn.004351e0
mov ecx, dword [esp + 0x2d4]
mov edx, dword [esp + 0x2d0]
add esp, 0x10
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x28]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call fcn.00411f80
lea eax, [esp + 0x44]
mov byte [esp + 0x508], 2
call fcn.004118e0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2a4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4114c0
lea esi, [esp + 0x14]
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00411f60
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x30], esi
jbe 0x4115fb
call fcn.004c6862
test ebx, ebx
je 0x411605
cmp ebx, dword [esp + 0x24]
je 0x41160a
call fcn.004c6862
cmp edi, esi
je 0x41168b
test ebx, ebx
jne 0x41167f
call fcn.004c6862
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x411623
call fcn.004c6862
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 4]
xor edi, edi
test ebx, ebx
jne 0x411683
call fcn.004c6862
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x411645
call fcn.004c6862
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
xor ecx, ecx
or eax, esi
or ecx, edi
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], ecx
test ebx, ebx
jne 0x411687
call fcn.004c6862
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x411672
call fcn.004c6862
add dword [esp + 0x18], 0x134
jmp 0x4115e8
mov eax, dword [ebx]
jmp 0x411619
mov eax, dword [ebx]
jmp 0x411637
mov eax, dword [ebx]
jmp 0x411664
cmp dword [esp + 0x20], 0
jl 0x4117bb
jg 0x4116a6
cmp dword [esp + 0x1c], 0x6400000
jbe 0x4117bb
lea eax, [esp + 0x24]
call fcn.00428e40
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, ebx
sub ecx, edi
mov eax, 0x3531dec1
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, ebx
jbe 0x4116d5
call fcn.004c6862
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, esi
shr ecx, 1
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edi
call fcn.00412020
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea eax, [ebx + 0x1c]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x411711
call fcn.004c6862
test esi, esi
je 0x41171b
cmp esi, dword [esp + 0x24]
je 0x411720
call fcn.004c6862
cmp ebx, edi
je 0x4117bb
test esi, esi
jne 0x4117b3
call fcn.004c6862
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x411741
call fcn.004c6862
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x110], 0
jne 0x411751
mov eax, dword [eax - 4]
lea ebx, [eax + 4]
lea edi, [esp + 0x44]
call fcn.004024d0
call fcn.004018b0
cmp byte [esp + 0x156], 0
jne 0x411784
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x411784
push eax
call fcn.004c31b0
add esp, 4
test esi, esi
jne 0x4117b7
call fcn.004c6862
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x10]
jb 0x41179d
call fcn.004c6862
mov eax, 0x134
add dword [esp + 0x20], eax
add dword [esp + 0x14], eax
mov ebx, dword [esp + 0x20]
jmp 0x411702
mov eax, dword [esi]
jmp 0x411737
mov eax, dword [esi]
jmp 0x41178f
cmp byte [esp + 0x298], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4117eb
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x188]
cmp eax, ecx
je 0x4117eb
push eax
call fcn.004c31b0
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x411811
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
push edx
call fcn.00412710
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call fcn.004c55cd
add esp, 4
mov ecx, dword [esp + 0x24]
xor eax, eax
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.004c55cd
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.00433d50
mov al, 1
jmp 0x4118b8
mov eax, dword [edi + 0xc]
lea esi, [esp + 0x3c]
call fcn.004170f0
test al, al
jne 0x41186f
test dword [ebx + 0x20], 0x100000
je 0x4118a9
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4118a9
mov eax, dword [ebx + 0x1c]
push 0
push 0
push 0xce2a
push eax
jmp 0x4118a3
test byte [ebx + 0x20], 0x10
je 0x41187a
call fcn.00411910
test dword [ebx + 0x20], 0x100000
je 0x4118a9
call fcn.00411b50
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4118a9
mov edx, dword [ebx + 0x1c]
push 0
push 1
push 0xce2a
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x3c]
call fcn.00433d50
mov al, 1
jmp 0x4118b8
xor al, al
mov ecx, dword [esp + 0x500]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.004c31a1
mov esp, ebp
pop ebp
ret