Function at 0x542901
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x58e3c4
push eax
mov eax, 0x4b48
mov dword fs:[0], esp
call fcn.00573b80
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x4b68]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x4b60], ebx
jne 0x54292d
mov dword [esp + 0x4b60], 0xffffffff
jmp 0x5433ba
cmp dword [esi + 0x78], ebx
jne 0x542942
mov dword [esp + 0x4b60], 0xffffffff
jmp 0x5433ba
push 0x5e2e30
lea ecx, [esp + 0x4b70]
call sub.MFC42.DLL_CString::Find
or edi, 0xffffffff
cmp eax, edi
je 0x542a7d
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CStringArray::CStringArray
push 1
lea eax, [esp + 0x4c]
push ebx
push eax
push ecx
mov byte [esp + 0x4b70], 1
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e2e30
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x4b80]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x4b78], 2
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x4b74], 1
call fcn.004406f0
mov eax, dword [esp + 0x64]
add esp, 0x14
cmp eax, 2
je 0x5429cd
mov byte [esp + 0x4b60], bl
lea ecx, [esp + 0x48]
jmp 0x5433ae
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x4b60], 3
add ecx, 4
push ecx
lea ecx, [esp + 0x4b70]
call fcn.00572d3c
mov edx, dword [esi + 0x78]
lea ecx, [esp + 0x14]
add edx, 0x628
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push eax
push ecx
call ebp
add esp, 8
mov byte [esp + 0x4b60], 3
test eax, eax
lea ecx, [esp + 0x14]
je 0x542a55
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b60], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x4b60], bl
lea ecx, [esp + 0x48]
jmp 0x5433ae
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b60], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x4b60], bl
call fcn.00572f3a
jmp 0x542a83
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CStringArray::CStringArray
push 1
lea edx, [esp + 0x6c]
push 1
push edx
push ecx
mov byte [esp + 0x4b70], 5
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e2e2c
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x4b80]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x4b78], 6
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x4b74], 5
call fcn.004406f0
mov eax, dword [esp + 0x84]
add esp, 0x14
cmp eax, 3
jne 0x5433a3
push 0x5f3788
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esi + 0x78]
mov byte [esp + 0x4b60], 7
add ecx, 0x660
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4b60], 8
call sub.MFC42.DLL_CStringArray::CStringArray
push 1
lea edx, [esp + 0x80]
push ebx
push edx
push ecx
mov byte [esp + 0x4b70], 9
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e2e30
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x4b78], 0xa
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x4b74], 9
call fcn.004406f0
mov eax, dword [esp + 0x98]
add esp, 0x14
xor esi, esi
cmp eax, ebx
jle 0x543370
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::CStringArray
push 1
lea ecx, [esp + 0x34]
push ebx
push ecx
push ecx
mov byte [esp + 0x4b70], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e2e2c
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x4b74], 0xc
call fcn.00436520
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x4b74], 0xb
call fcn.004406f0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx]
mov ecx, dword [ecx]
push eax
push ecx
call ebp
add esp, 0x1c
test eax, eax
jne 0x542ce3
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004e07e0
add esp, 8
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x20]
add ecx, 8
lea eax, [esp + 0x28]
push ecx
push edx
push eax
mov byte [esp + 0x4b6c], 0xd
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b64], 0xe
call fcn.00572d3c
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b60], 0xd
call sub.MFC42.DLL_CString::CString
push ebx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_4
call fcn.00443380
add esp, 8
cmp eax, ebx
je 0x542cd2
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2d0]
push eax
push ecx
call fcn.0043c080
add esp, 8
test eax, eax
je 0x542cd2
lea edx, [esp + 0x2e4]
lea ecx, [esp + 0x48]
push edx
call fcn.0057318c
lea eax, [esp + 0x18]
push str._H:_M
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_COleDateTime::Format
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
push eax
push edx
call ebp
add esp, 8
mov byte [esp + 0x4b60], 0xd
test eax, eax
lea ecx, [esp + 0x18]
je 0x542d09
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b60], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x4b60], 9
call fcn.00572f3a
mov eax, dword [esp + 0x84]
inc esi
cmp esi, eax
jl 0x542b82
jmp 0x543370
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b60], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x4b60], 9
call fcn.00572f3a
mov esi, 0x59353c
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
push edi
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x4b68], 0x10
call fcn.004377d0
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_5
push 0x104
lea eax, [esp + 0x754]
push 4
push eax
call fcn.00573daf
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b60], 0x11
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x24]
push str..
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x4b6c], 0x12
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4b64], 0x13
call fcn.00572d3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b60], 0x12
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2d0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x542e39
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b60], 0x11
call sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString
push 0x104
lea edx, [esp + 0x750]
push 4
push edx
mov byte [esp + 0x4b70], 0x10
call fcn.00573a2e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], esi
cmp eax, ebx
je 0x542e2c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x30], 0x5916e0
jmp 0x543370
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2fc]
mov dword [esp + 0x2b0], ebx
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x2b8], ebx
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x2cc], ebx
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
lea edx, [esp + 0x24]
push 0x5e2e34
lea eax, [esp + 0x68]
push edx
push eax
mov byte [esp + 0x4b6c], 0x14
call sub.MFC42.DLL_operator
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x4b6c], 0x15
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x64]
mov byte [esp + 0x4b60], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x4b60], 0x17
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x2fc]
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [eax]
push 0x5e2880
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x13], bl
je 0x5430f7
lea eax, [esp + 0x2fc]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [eax]
push 0x5e4530
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x13], bl
je 0x54301a
test byte [esp + 0x2d0], 0x10
je 0x542ff3
push ebx
push 0x1f4
mov dword [esp + 0xa8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0xa4], esp
push 0x5f3788
call sub.MFC42.DLL_CString::CString_3
push 1
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0xa8], esp
push edx
mov byte [esp + 0x4b7c], 0x19
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x4b78], 0x17
call fcn.004434a0
add esp, 0x18
mov dword [esp + 0x2b0], eax
mov dword [esp + 0x2b4], edx
jmp 0x54302f
mov eax, dword [esp + 0x2ec]
mov ecx, dword [esp + 0x2f0]
shl eax, 0x20
or eax, ecx
mov dword [esp + 0xa0], 1
mov dword [esp + 0x2b0], eax
jmp 0x543028
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x2b0], ebx
mov dword [esp + 0x2b4], ebx
mov ecx, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x1ac]
push ecx
push edx
call fcn.0043bab0
lea edi, [esp + 0x308]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2e4]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0057318c
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c0], edx
mov dword [esp + 0x2c4], eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, 0x8e
lea esi, [esp + 0x9c]
lea edi, [esp + 0x514]
mov dword [esp + 0x2c0], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
add esp, 4
lea ecx, [esp + 0x30]
lea edx, [esi + 1]
push 0xffffffffffffffff
push edx
call fcn.004377d0
mov ecx, dword [esp + 0x34]
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
lea esi, [esp + 0x510]
lea edi, [ecx + eax*8]
mov ecx, 0x8e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x4b60], 0x12
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
jne 0x542e39
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5f3788
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x4b60], 0x1a
jle 0x54327d
mov ebp, dword [sym.imp.MSVCRT.dll__i64toa]
xor esi, esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x410]
push 0xa
push edx
mov ecx, dword [eax + esi + 0x21c]
mov edx, dword [eax + esi + 0x218]
push ecx
push edx
mov byte [esp + 0x4b70], 0x1b
call ebp
mov eax, dword [esp + 0x44]
add esp, 0x10
lea ecx, [esp + 0x1c]
fld qword [eax + esi + 0x228]
push str._Y__m__d__H:_M:_S
push ecx
fstp qword [esp + 0x50]
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], ebx
call sub.MFC42.DLL_COleDateTime::Format
mov ecx, dword [esp + 0x34]
mov edx, dword [eax]
lea eax, [esp + 0x410]
push edx
mov edx, dword [ecx + esi + 8]
push eax
lea eax, [ecx + esi + 0xc]
mov ecx, dword [ecx + esi + 0x224]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str._d::_s::_d::_s::_s
push edx
mov byte [esp + 0x4b7c], 0x1c
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b60], 0x1b
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
dec eax
cmp edi, eax
je 0x543219
push 0x5e2e30
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
lea eax, [ecx + eax + 1]
cmp eax, 0x3e70
jge 0x543266
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00572d2a
lea ecx, [esp + 0x14]
mov byte [esp + 0x4b60], 0x1a
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
inc edi
add esi, 0x238
cmp edi, eax
jl 0x54315c
jmp 0x543277
lea ecx, [esp + 0x14]
mov byte [esp + 0x4b60], 0x1a
call sub.MFC42.DLL_CString::CString
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esp + 0x28]
push 0x5f3788
push edx
call ebp
add esp, 8
test eax, eax
je 0x543309
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
push ecx
push edx
call fcn.0043bab0
mov eax, dword [esp + 0x4b7c]
add esp, 0xc
cmp eax, ebx
lea eax, [esp + 0xb58]
push ebx
push ebx
push ebx
push eax
jne 0x5432f0
push 0x95
jmp 0x5432f5
push 0x99
mov ecx, dword [esp + 0x4b7c]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [edx + 0x6c]
call fcn.0049c4e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b60], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b60], 0x11
call sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString
push 0x104
lea eax, [esp + 0x750]
push 4
push eax
mov byte [esp + 0x4b70], 0x10
call fcn.00573a2e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0x59353c
cmp eax, ebx
je 0x543365
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x30], 0x5916e0
or edi, 0xffffffff
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4b60], 8
call fcn.00572f3a
lea ecx, [esp + 0x44]
mov byte [esp + 0x4b60], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x4b60], 5
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x4b60], bl
lea ecx, [esp + 0x68]
call fcn.00572f3a
mov dword [esp + 0x4b60], edi
lea ecx, [esp + 0x4b6c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4b58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4b54
ret 0xc