Function at 0x4dd070
Capabilities:
Enumerate files on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4feadc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x13dc
call fcn.004f2fa0
mov eax, dword [0x540cc0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x13e4], eax
xor ebx, ebx
mov word [esp + 0x228], bx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x5c]
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
mov word [esp + 0x24], bx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
add esp, 0xc
push ebx
lea ecx, [esp + 0x6cc]
stosw word es:[edi], ax
call fcn.004e0900
lea ecx, [esp + 0x228]
push ecx
push str._s.ISUP
lea edx, [esp + 0x20]
push 0x104
mov dword [esp + 0x1400], ebx
mov ebx, dword [sym.imp.MSVCR71.dll__snprintf]
push edx
call ebx
add esp, 0x10
push 0x5201f4
push 0x5201f0
push 0x104
lea eax, [esp + 0x24]
push eax
call fcn.004df310
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x470]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4dd2a1
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea esp, [esp]
push str.___FindNextFile____r_n
mov byte [esp + 0x124], 0
call edi
lea eax, [esp + 0x49c]
push eax
call edi
push 0x5201d4
call edi
lea ecx, [esp + 0x49c]
push 0x2e
push ecx
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x4dd280
lea edx, [esp + 0x49c]
push edx
lea eax, [esp + 0x22c]
push eax
push 0x5201cc
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call ebx
add esp, 0x14
push 0x5201f4
push 0x5201f0
push 0x104
lea edx, [esp + 0x12c]
push edx
call fcn.004df310
push str.___Find____r_n
call edi
lea eax, [esp + 0x120]
push eax
call edi
push 0x5201d4
call edi
mov eax, dword [esi + 0x20]
lea ecx, [eax + 1]
push eax
lea edx, [esp + 0x124]
mov dword [esi + 0x20], ecx
push edx
lea ecx, [esp + 0x6d0]
call fcn.004e0af0
mov ebx, eax
test ebx, ebx
je 0x4dd280
lea eax, [esi + 0x24]
test eax, eax
mov dword [esp + 0xc], eax
je 0x4dd24c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 8]
mov byte [esp + 0x13f8], 1
mov dword [esp + 0x18], eax
call fcn.004dcee0
mov dword [eax], ebx
mov eax, dword [esp + 0xc]
test eax, eax
mov byte [esp + 0x13f4], 0
je 0x4dd280
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x470]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov ebx, dword [sym.imp.MSVCR71.dll__snprintf]
jne 0x4dd180
lea ecx, [esp + 0x6c8]
mov dword [esp + 0x13f4], 0xffffffff
call fcn.004e0970
mov word [esp + 0xbe0], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xbe2]
rep stosd dword es:[edi], eax
push 0x3ff
lea ecx, [esi + 0x5c]
stosw word es:[edi], ax
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0xbe8]
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
xor eax, eax
mov word [esp + 0xfec], 0
mov ecx, 0xff
lea edi, [esp + 0xfee]
rep stosd dword es:[edi], eax
lea edx, [esp + 0xbec]
push edx
push str._s.down
stosw word es:[edi], ax
lea eax, [esp + 0xff4]
push 0x400
push eax
call ebx
add esp, 0x1c
push 0x5201f4
push 0x5201f0
push 0x400
lea ecx, [esp + 0xfec]
push ecx
call fcn.004df310
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x330]
lea edx, [esp + 0x330]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0xfe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4dd53b
push 0
lea ecx, [esp + 0x5b4]
call fcn.004df680
mov dword [esp + 0x13f4], 2
jmp 0x4dd3a0
mov ebx, dword [sym.imp.MSVCR71.dll__snprintf]
lea esp, [esp]
lea ecx, [esp + 0x35c]
push 0x2e
push ecx
mov byte [esp + 0x7e8], 0
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x4dd509
movsx eax, byte [eax + 1]
sub eax, 0x49
je 0x4dd43d
sub eax, 0x1d
je 0x4dd3da
sub eax, 2
jne 0x4dd509
lea edx, [esp + 0x35c]
push edx
lea eax, [esp + 0xbe4]
push eax
push 0x5201cc
lea ecx, [esp + 0x7ec]
push 0x400
push ecx
call ebx
add esp, 0x14
push 0x5201f4
push 0x5201f0
push 0x400
lea edx, [esp + 0x7ec]
push edx
call fcn.004df310
mov eax, dword [esi + 0x20]
lea ecx, [eax + 1]
push eax
lea edx, [esp + 0x7e4]
mov dword [esi + 0x20], ecx
push edx
lea ecx, [esp + 0x5b8]
call fcn.004df990
jmp 0x4dd49e
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0xbe4]
push ecx
push 0x5201cc
lea edx, [esp + 0x7ec]
push 0x400
push edx
call ebx
add esp, 0x14
push 0x5201f4
push 0x5201f0
push 0x400
lea eax, [esp + 0x7ec]
push eax
call fcn.004df310
mov eax, dword [esi + 0x20]
lea ecx, [eax + 1]
push eax
lea edx, [esp + 0x7e4]
mov dword [esi + 0x20], ecx
push edx
lea ecx, [esp + 0x5b8]
call fcn.004e02c0
mov edi, eax
test edi, edi
je 0x4dd509
lea ebx, [esi + 0x24]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4dd4b6
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x13f4], 3
call dword [eax + 0x10]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], eax
call fcn.004dcee0
mov dword [eax], edi
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa0]
imul eax, eax, 0x3e8
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x154]
test ebx, ebx
mov byte [esp + 0x13f4], 2
je 0x4dd509
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x330]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4dd396
lea ecx, [esp + 0x5b0]
mov dword [esp + 0x13f4], 0xffffffff
call fcn.004df6a0
mov ecx, dword [esp + 0x13ec]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13e4]
call fcn.004f2f91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret