Function at 0x641980
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x906648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x25c], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6419fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x9538a8], 1
mov edi, eax
je 0x641b95
push edi
push esi
push str.Failed_to_find_first_file_in__s._err___d.
push 0x2b
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_init.cpp
push str.mapl_remove_tmp_cert_files
push dword [0x909f70]
push 1
call fcn.004f21c0
add esp, 0x20
jmp 0x641b95
test byte [0x9538a8], 0x10
je 0x641a2b
lea eax, [ebp - 0x228]
push eax
push str.First_file_DIR_is__s.
push 0x2f
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_init.cpp
push str.mapl_remove_tmp_cert_files
push dword [0x909f70]
push 0x10
call fcn.004f21c0
add esp, 0x1c
push 0x208
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
jne 0x641a46
lea edi, [eax + 0xc]
jmp 0x641b91
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x254]
push eax
push ebx
call edi
test eax, eax
je 0x641b49
nop
mov eax, dword [0x9538a8]
and eax, dword [ebp - 0x254]
test al, 0x10
je 0x641a97
lea eax, [ebp - 0x228]
push eax
push str.DIR_is__s.
push 0x3f
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_init.cpp
push str.mapl_remove_tmp_cert_files
push dword [0x909f70]
push 0x10
call fcn.004f21c0
add esp, 0x1c
push 0x6e3058
call fcn.004f36b0
push eax
lea eax, [ebp - 0x228]
push 0x6e3058
push eax
call fcn.004f3810
add esp, 0x10
test eax, eax
jne 0x641b37
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
push str._sTemp_s
push 0x208
push esi
call fcn.004f3b60
push esi
call fcn.00507350
add esp, 0x18
test eax, eax
je 0x641b0a
test byte [0x9538a8], 1
je 0x641b37
push eax
push esi
push str.Failed_to_remove_cert_tmp_file__s___err__d
push 0x4a
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_init.cpp
push str.mapl_remove_tmp_cert_files
push dword [0x909f70]
push 1
jmp 0x641b2f
test byte [0x9538a8], 8
je 0x641b37
push 0
push esi
push str.Removing_cert_tmp_file__s___err__d
push 0x4f
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_init.cpp
push str.mapl_remove_tmp_cert_files
push dword [0x909f70]
push 8
call fcn.004f21c0
add esp, 0x20
lea eax, [ebp - 0x254]
push eax
push ebx
call edi
test eax, eax
jne 0x641a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x641b88
test byte [0x9538a8], 0x10
je 0x641b86
push dword [ebp - 0x25c]
push str.No_more_files_left_on_dir__s
push 0x57
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_mapl_mapl_init.cpp
push str.mapl_remove_tmp_cert_files
push dword [0x909f70]
push 0x10
call fcn.004f21c0
add esp, 0x1c
xor edi, edi
push esi
call fcn.0063e429
add esp, 4
test ebx, ebx
je 0x641b9c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063c972
mov esp, ebp
pop ebp
ret