Function at 0x401000
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x39c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3ac]
push edi
push esi
call sub.REDCOMM.dll_Ordinal_93
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 1
push 1
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, eax
mov eax, dword [0x41c1f0]
push 0x6c
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0x6a9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ebp, eax
push 1
push 0x1003
push ebp
call ebx
lea ecx, [esp + 0x40]
xor edi, edi
push ecx
push edi
push 0x101b
push ebp
mov dword [esp + 0x50], 0xb
mov dword [esp + 0x64], edi
mov dword [esp + 0x58], 0x104
mov dword [esp + 0x54], edi
call ebx
cmp eax, 0xffffffff
jne 0x4010b2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x39c
ret
mov eax, dword [0x41c1f0]
lea edx, [esp + 0x60]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4010e3
push str.HistoryChat.rtf
lea ecx, [esp + 0x64]
push 0x5c
push ecx
call fcn.0040e650
add esp, 8
push eax
jmp 0x4010ed
lea edx, [esp + 0x60]
push str.C:HistoryChat.rtf
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x164]
lea ecx, [esp + 0x60]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x4011f7
test byte [esp + 0x164], 0x10
jne 0x4011d9
lea edx, [esp + 0x190]
lea eax, [esp + 0x60]
push edx
push 0x5c
push eax
call fcn.0040e650
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2a4]
lea edx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.RSCLASS.dll_int___stdcall_FUN_GetHistoryDataFileHeader_char_const___struct__HISTORYDATAFILE_HEADER__]
test eax, eax
je 0x4011d9
push 0x104
call fcn.0040e5b5
mov esi, eax
push esi
call fcn.0040e570
mov ecx, eax
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x18]
xor eax, eax
push edx
push eax
lea ecx, [esp + 0x2b0]
push 0x1007
push ebp
mov dword [esp + 0x28], 7
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
call ebx
mov esi, dword [esp + 0x3b0]
inc edi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x164]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401119
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x21
push 0
push 0x1036
push ebp
call ebx
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
test edi, edi
je 0x401234
mov ecx, dword [edi + 0x90]
push ecx
push 0
push 0x1001
push ebp
call ebx
mov edx, dword [edi + 0x90]
push edx
push 0
push 0x1026
push ebp
call ebx
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push 1
push eax
push 0x30
push 0x6a9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
push 1
push 0x6a5
push esi
call sub.REDCOMM.dll_Ordinal_52
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret