Function at 0x501ae3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58ed51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push ebp
mov eax, dword [esi + 0xe8]
push ebp
push 0x1009
push eax
call ebx
mov ecx, dword [esi + 0x74]
push 1
push ecx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x28], ebp
call fcn.0044e4c0
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x74]
push 1
push eax
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x20]
push eax
call dword [edx + 0xa4]
mov eax, dword [eax]
lea ecx, [esp + 0x78]
push eax
push 0x3e8
push ecx
mov dword [esp + 0x474], ebp
call fcn.004455f0
add esp, 0x20
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 0x1c]
push eax
push ebp
lea edx, [esp + 0x6c]
push 0x101b
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], 1
call ebx
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x70], ebp
mov edi, dword [edx]
cmp edi, ebp
jle 0x501c28
cmp edi, 0xc8
jg 0x501c28
mov eax, dword [esi + 0x74]
push edi
push eax
call fcn.0044e4c0
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x74]
push edi
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
push eax
push edx
call dword [ecx + 0xa4]
mov eax, dword [eax]
mov dword [esp + 0x468], 1
push eax
lea eax, [esp + 0x7c]
push 0x3e8
push eax
call fcn.004455f0
add esp, 0x20
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x70]
lea edx, [esp + 0x1c]
inc eax
push edx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esi + 0xe8]
lea ecx, [esp + 0x6c]
push 0x101b
push eax
mov dword [esp + 0x38], ecx
call ebx
mov ecx, dword [esi + 0x70]
inc ecx
mov dword [esi + 0x70], ecx
mov eax, ecx
mov ecx, dword [esi + 0x6c]
mov edi, dword [ecx + eax*4]
cmp edi, ebp
jg 0x501b8c
mov edx, dword [esi + 0xe8]
push 0x20
push ebp
push 0x1036
push edx
mov dword [esp + 0x4c], 3
mov dword [esp + 0x54], ebp
call ebx
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x78], ebp
push eax
mov eax, dword [esi + 0xa8]
push ecx
push 0x406
push eax
call ebx
mov edi, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x70]
cmp edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
jg 0x501e12
jmp 0x501c83
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x501e12
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x74]
push edx
push eax
push edi
call fcn.00495cf0
mov edx, dword [esi + 0x78]
add esp, 0xc
inc edx
mov dword [esi + 0x78], edx
mov ecx, dword [esi + 0xa8]
push 0
push edi
push 0x402
push ecx
call ebx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x40], ebp
mov eax, dword [edx + 0x128]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0xe8]
push eax
push 0
push 0x1007
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ebp
call ebx
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x70], 0
mov edi, dword [edx]
test edi, edi
jle 0x501dfa
cmp edi, 0xc8
jg 0x501dfa
mov ecx, dword [esi + 0x74]
push edi
mov eax, dword [ecx]
call dword [eax + 0x29c]
cmp al, 0x43
jne 0x501d9e
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x5c]
cmp word [ecx + edi*2], 0x28
jb 0x501d81
mov edx, dword [eax + 0x128]
lea ebx, [esi + 0x60]
mov ecx, ebx
mov eax, dword [edx + edi*4]
push eax
call sub.MFC42.DLL_CString::operator_3
mov edi, 0xa
push 0x5fd204
push 0x601d60
mov ecx, ebx
call sub.MFC42.DLL_CString::Replace_1
push 0x5fd204
push 0x601d60
mov ecx, ebx
call sub.MFC42.DLL_CString::Replace_1
dec edi
jne 0x501d43
mov ecx, dword [ebx]
push ecx
push 0xb
push ebp
lea ecx, [esi + 0xc8]
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x501de3
mov edx, dword [eax + 0x128]
mov ecx, dword [esi + 0x70]
inc ecx
mov eax, dword [edx + edi*4]
push eax
push ecx
push ebp
lea ecx, [esi + 0xc8]
call sub.MFC42.DLL_CListCtrl::SetItemText
jmp 0x501de3
mov edx, dword [esi + 0x74]
lea eax, [esp + 0x14]
push edx
push edi
push eax
call fcn.00502170
add esp, 0xc
mov ecx, dword [esi + 0x70]
mov eax, dword [eax]
inc ecx
push eax
push ecx
push ebp
lea ecx, [esi + 0xc8]
mov dword [esp + 0x460], 2
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x14]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
inc ecx
mov eax, ecx
mov dword [esi + 0x70], ecx
mov edi, dword [edx + eax*4]
test edi, edi
jg 0x501cfd
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x80]
inc eax
inc ebp
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x501c7f
cmp dword [esi + 0x78], 1
jne 0x501e2d
push 0
push 0x86a1
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret