Function at 0x501620
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x544ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
mov eax, dword [esp + 0x318]
mov esi, ecx
xor edi, edi
push 0x24c
lea ecx, [esp + 0xbc]
push edi
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0xc0], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea ecx, [esp + 0x24]
call dword [0x55a520]
mov dword [esp + 0x310], edi
push 0x58ba0c
lea ecx, [esp + 0x24]
call dword [0x55a294]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xb4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.libUtils.module_public:_class_xmlElement____thiscall_xmlElement::GetChildPtr_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
mov dword [esp + 0x4c], eax
test byte [esp + 0xb4], 0x10
jne 0x501979
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x310], 1
push esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x55a294]
lea ecx, [esp + 0x64]
call dword [sym.imp.libUtils.module_public:_void___thiscall_xmlElement::constructor_void_]
mov bl, 2
mov byte [esp + 0x310], bl
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.libUtils.module_lutXMLStandardParseF]
add esp, 0xc
cmp byte [esp + 0xa4], 0
je 0x501955
push 0x58ba1c
lea ecx, [esp + 0x38]
call dword [0x55a504]
mov byte [esp + 0x310], 3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x68]
call edi
mov ebp, eax
mov byte [esp + 0x310], bl
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x58ba24
lea ecx, [esp + 0x48]
call dword [0x55a504]
mov byte [esp + 0x310], 4
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x68]
call edi
mov dword [esp + 0x40], eax
mov byte [esp + 0x310], bl
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str.name
lea ecx, [esp + 0x4c]
call dword [0x55a504]
mov byte [esp + 0x310], 5
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x68]
call edi
mov dword [esp + 0x38], eax
mov byte [esp + 0x310], bl
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str.code
lea ecx, [esp + 0x40]
call dword [0x55a504]
mov byte [esp + 0x310], 6
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x68]
call edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x310], bl
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test ebp, ebp
je 0x501955
cmp dword [esp + 0x40], 0
je 0x501955
cmp dword [esp + 0x38], 0
je 0x501955
cmp dword [esp + 0x24], 0
je 0x501955
cmp dword [esp + 0x31c], 0
je 0x5018d2
mov ebx, dword [esp + 0x1c]
add ebx, 0x68
lea esi, [esp + 0x28]
call fcn.00419580
lea ecx, [ecx]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
add esi, eax
cmp eax, esi
jbe 0x501872
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx]
test ecx, ecx
je 0x501880
cmp ecx, eax
je 0x501886
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x2c], esi
je 0x5018cc
lea eax, [esp + 0x28]
call fcn.00413720
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x3c]
push ecx
lea ecx, [eax + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x5018b5
lea esi, [esp + 0x28]
call fcn.004ea0e0
jmp 0x501860
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push ebx
lea ebx, [esp + 0xb8]
call fcn.00504ca0
mov esi, dword [esp + 0x30]
mov bl, 2
lea edx, [esp + 0x50]
push edx
call fcn.00487580
mov byte [esp + 0x310], 7
mov eax, dword [esp + 0x38]
add eax, 0x3c
push eax
lea ecx, [esp + 0x54]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov ecx, dword [esp + 0x40]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x60]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
add ebp, 0x3c
push ebp
lea ecx, [esp + 0x64]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov edx, dword [esp + 0x24]
add edx, 0x3c
push edx
lea ecx, [esp + 0x5c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
push esi
lea ecx, [esp + 0x58]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x20]
add eax, 0x68
call fcn.00487f10
mov byte [esp + 0x310], bl
lea ecx, [esp + 0x50]
push ecx
call fcn.005019f0
mov byte [esp + 0x310], 1
lea ecx, [esp + 0x64]
call dword [sym.imp.libUtils.module_public_virtual:_void___thiscall_xmlElement::destructor_void_]
mov byte [esp + 0x310], 0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebx, dword [esp + 0x4c]
lea edx, [esp + 0xb4]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5016c9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x84]
mov dword [esp + 0x310], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.00532776
add esp, 0x300
ret 8