Function at 0x404f90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5100b2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x14f4
call fcn.0050c2d0
mov eax, dword [0x551aa8]
xor eax, esp
mov dword [esp + 0x14f0], eax
push ebx
push esi
push edi
mov eax, dword [0x551aa8]
xor eax, esp
push eax
lea eax, [esp + 0x1508]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x6ea]
xor eax, eax
push edi
push ecx
mov word [esp + 0x6f0], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x6e8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x206
lea ecx, [esp + 0x4e2]
xor eax, eax
push edi
push ecx
mov word [esp + 0x4e8], ax
call sub.MSVCR100.dll_memset
push 0x206
lea eax, [esp + 0x2e6]
xor edx, edx
push edi
push eax
mov word [esp + 0x2ec], dx
call sub.MSVCR100.dll_memset
push 0x206
lea edx, [esp + 0xb12]
xor ecx, ecx
push edi
push edx
mov word [esp + 0xb18], cx
call sub.MSVCR100.dll_memset
push 0x206
lea ecx, [esp + 0x916]
xor eax, eax
push edi
push ecx
mov word [esp + 0x91c], ax
call sub.MSVCR100.dll_memset
lea edx, [esp + 0x91c]
push edx
lea eax, [esp + 0xb28]
push eax
lea ecx, [esp + 0x30c]
push ecx
lea edx, [esp + 0x518]
push edx
lea eax, [esp + 0x724]
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath]
add esp, 0x44
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x2d4]
push ecx
lea edx, [esp + 0x4e0]
push edx
lea eax, [esp + 0x40]
push 0x542d80
push eax
mov dword [esp + 0x1520], edi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x1514], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push str.DNLauncher__Log.txt
lea ecx, [esp + 0x34]
call dword [0x511830]
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, esi
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
cmp ebx, 0xffffffff
je 0x4052bb
lea ebx, [ebx]
test byte [esp + 0x84], 0x10
jne 0x4052a4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1514], 3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea edx, [esp + 0x18]
cmp edx, edi
jae 0x405221
mov eax, edx
cmp esi, eax
ja 0x405221
mov ecx, dword [esp + 0x28]
mov ebx, edx
sub ebx, esi
sar ebx, 2
cmp edi, ecx
jne 0x4051fb
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40541a
sub ecx, esi
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x4051fb
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x4051e1
xor ecx, ecx
jmp 0x4051e3
add ecx, edx
cmp ecx, eax
jae 0x4051e9
mov ecx, eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00405920
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea eax, [esi + ebx*4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x1510], 4
test edi, edi
je 0x40521b
push eax
mov ecx, edi
call dword [0x511ab0]
mov ebx, dword [esp + 0x14]
jmp 0x405293
mov ecx, dword [esp + 0x28]
cmp edi, ecx
jne 0x405272
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40541a
sub ecx, esi
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x405272
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x405258
xor ecx, ecx
jmp 0x40525a
add ecx, edx
cmp ecx, eax
jae 0x405260
mov ecx, eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00405920
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x1510], 5
test edi, edi
je 0x405293
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [0x511ab0]
add edi, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea edx, [esp + 0x84]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405150
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ecx
mov byte [esp + 0x1510], 6
mov eax, edi
sub eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
sar eax, 2
mov dword [esp + 0x1c], eax
cmp eax, ecx
jle 0x4054fc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call dword [0x511ab0]
push 0
push 0x542dac
lea ecx, [esp + 0x20]
mov byte [esp + 0x1518], 7
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
inc eax
push eax
push 0
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
push 0
push 0x542dac
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
lea edx, [esp + 0x58]
push edx
mov edi, eax
call dword [sym.imp.MSVCR100.dll__time64]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR100.dll__localtime64_s]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
push edx
push eax
add ecx, 0x76c
push ecx
lea edx, [esp + 0xd18]
push 0x542db0
push edx
mov edx, 0x400
call fcn.00405a10
lea eax, [esp + 0xd20]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 0x28
cmp edi, eax
jge 0x4054ce
mov edi, dword [esp + 0x14]
cmp edi, esi
jae 0x405459
cmp ebx, edi
ja 0x405459
mov ecx, dword [esp + 0x44]
sub edi, ebx
sar edi, 2
cmp esi, ecx
jne 0x40543f
mov eax, esi
sub eax, ebx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40541a
sub ecx, ebx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x40543f
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x405425
xor ecx, ecx
jmp 0x405427
push str.vector_T__too_long
call dword [0x546e68]
add ecx, edx
cmp ecx, eax
jae 0x40542d
mov ecx, eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00405920
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
lea edi, [ebx + edi*4]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x1510], 8
test esi, esi
je 0x4054c7
push edi
jmp 0x4054bf
mov ecx, dword [esp + 0x44]
cmp esi, ecx
jne 0x4054a6
mov eax, esi
sub eax, ebx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40541a
sub ecx, ebx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x4054a6
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x40548c
xor ecx, ecx
jmp 0x40548e
add ecx, edx
cmp ecx, eax
jae 0x405494
mov ecx, eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00405920
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov byte [esp + 0x1510], 9
test esi, esi
je 0x4054c7
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call dword [0x511ab0]
add esi, 4
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x1510], 6
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], 4
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x1c]
jl 0x405301
mov edi, dword [esp + 0x24]
mov eax, esi
sub eax, ebx
sar eax, 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x40552e
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + edx*4]
call fcn.004145f0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x1c]
jl 0x405513
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40555f
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x405540
mov edi, dword [esp + 0x20]
mov eax, edi
cmp ebx, esi
je 0x40558f
mov dword [esp + 0x14], ebx
jmp 0x405570
mov ecx, dword [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
cmp eax, esi
jne 0x405570
mov eax, dword [esp + 0x20]
mov esi, ebx
test ebx, ebx
je 0x4055c7
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x4055b9
jmp 0x4055a0
mov ecx, dword [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
cmp eax, esi
jne 0x4055a0
push ebx
call dword [sym.imp.mfc100u.dll_delete]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4055ee
mov esi, eax
cmp eax, edi
je 0x4055e0
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
add esi, 4
cmp esi, edi
jne 0x4055d1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [esp + 0x1508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14f0]
xor ecx, esp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret