Function at 0x49fb50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x53ae63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f0
mov eax, dword [0x590f68]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x174]
mov dword [esp + 0x3fc], eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ltwvc13n.dll_public:_void___thiscall_LBitmapBase::constructor_void_]
push 0xffffffffffffffff
lea ebp, [esi + 0x6d4]
push 0
mov ecx, ebp
mov dword [esp + 0x410], 0
call fcn.0050191f
push 0x551870
lea eax, [esi + 0x680]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00402f80
push 0x552534
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x420], 1
call fcn.00402f80
add esp, 0x18
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x410], 2
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ebx
je 0x49fe1a
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x414], 3
call fcn.00402f80
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40c], 4
call fcn.00402e60
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x408], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fc70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
dec eax
or eax, ecx
jge 0x49fc95
push 1
lea ecx, [esp + 0x14]
call fcn.00401560
mov esi, dword [esp + 0x10]
push 0
push 0
push 4
push 0
push esi
lea ecx, [esp + 0x188]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Load_char___int__int__struct__LOADFILEOPTION___struct_struct_file_information__]
cmp eax, 1
jne 0x49fccd
lea ecx, [esp + 0x174]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Free_void_]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x60]
push ecx
push eax
mov ecx, ebp
call fcn.00501c3f
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x49fded
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00402f80
add esp, 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x408], 5
je 0x49fd5a
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x49fd48
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x49fd48
push eax
call fcn.00402ae0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x49fd3b
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
jmp 0x49fd5a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401720
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x408], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fd80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
dec eax
or eax, ecx
jge 0x49fda1
push 1
lea ecx, [esp + 0x14]
call fcn.00401560
mov esi, dword [esp + 0x10]
push 0
push 0
push 4
push 0
push esi
lea ecx, [esp + 0x188]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Load_char___int__int__struct__LOADFILEOPTION___struct_struct_file_information__]
cmp eax, 1
jne 0x49fdd9
lea ecx, [esp + 0x174]
call dword [sym.imp.ltwvc13n.dll_public_virtual:_int___thiscall_LBitmapBase::Free_void_]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x60]
push ecx
push eax
mov ecx, ebp
call fcn.00501c3f
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x49fce1
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
add esi, 0xfffffff0
mov byte [esp + 0x408], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49fe16
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x6dc]
xor edi, edi
lea ecx, [eax - 1]
test ecx, ecx
mov dword [esp + 0x14], edi
jg 0x49fec0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x408], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49fe57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x408], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fe7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x174]
mov dword [esp + 0x408], 0xffffffff
call dword [sym.imp.ltwvc13n.dll_public_virtual:_void___thiscall_LBitmapBase::destructor_void_]
mov ecx, dword [esp + 0x400]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3f0]
pop ebx
call fcn.004e9911
add esp, 0x3fc
ret
mov edi, dword [esp + 0x14]
mov edi, edi
lea esi, [edi + 1]
cmp esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], esi
jge 0x4a00a3
test esi, esi
jl 0x4a00c1
cmp esi, dword [ebp + 8]
jge 0x4a00c1
mov eax, dword [ebp + 4]
lea ecx, [esi*4]
add eax, ecx
test edi, edi
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
jl 0x4a00c1
cmp edi, dword [ebp + 8]
jge 0x4a00c1
mov ecx, dword [ebp + 4]
lea ebx, [edi*4]
add ecx, ebx
mov ecx, dword [ecx]
push eax
push ecx
call fcn.004ea679
add esp, 8
test eax, eax
jle 0x4a0088
cmp edi, dword [ebp + 8]
jge 0x4a00c1
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x18]
add eax, ebx
mov eax, dword [eax]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x49ff91
mov edx, dword [esi + 0xc]
test edx, edx
jl 0x49ff83
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x49ff83
push ecx
call fcn.00402ae0
mov dword [esp + 0x2c], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49ff76
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0x10
mov dword [esp + 0x18], eax
jmp 0x49ff91
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401720
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x4a00c1
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add eax, edx
cmp edi, ecx
jge 0x4a00c1
mov edi, dword [ebp + 4]
mov ecx, dword [eax]
mov esi, dword [edi + ebx]
add edi, ebx
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4a000e
mov edx, dword [esi + 0xc]
test edx, edx
lea ebx, [esi + 0xc]
jl 0x4a0002
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a0002
push eax
call fcn.00402ae0
mov dword [esp + 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x49fff7
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0x10
mov dword [edi], eax
jmp 0x4a000e
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00401720
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
jge 0x4a00c1
mov edi, dword [ebp + 4]
shl eax, 2
mov esi, dword [edi + eax]
add edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
sub esi, 0x10
cmp eax, esi
je 0x4a0080
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea ebx, [esi + 0xc]
jl 0x4a0070
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4a0070
push eax
call fcn.00402ae0
add esp, 4
mov dword [esp + 0x1c], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x4a0065
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4a0080
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00401720
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x6dc]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x49fed3
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x6dc]
lea ecx, [eax - 1]
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x49feba
jmp 0x49fe31
jmp fcn.004fd76e