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

Disassembly:
mov eax, 0x80098
call fcn.00416940
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor ebp, ebp
mov ecx, 0x1ffff
xor eax, eax
lea edi, [esp + 0xac]
mov dword [esp + 0xa8], ebp
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xba0]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [ebx + 0xa60]
mov dword [ebx + 0xb58], ebp
call fcn.0040b900
mov ecx, dword [ebx + 0xbdc]
xor eax, eax
cmp ecx, ebp
jle 0x40dc32
mov edx, 0x4221ec
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx]
cmp eax, ecx
je 0x40dbf8
xor ebp, ebp
mov eax, ecx
test eax, eax
jl 0x40dc03
cmp eax, 0x10
jle 0x40dc05
xor eax, eax
mov ecx, eax
lea esi, [edx - 0x7c]
shl ecx, 8
add ecx, ebp
add edx, 0x80
shl ecx, 7
inc ebp
lea edi, [esp + ecx + 0xa8]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x40dbf0
xor edi, edi
mov ecx, ebx
mov dword [ebx + 0xbdc], edi
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov eax, dword [ebx + 0xb54]
mov dword [esp + 0x28], edi
cmp eax, edi
jbe 0x40e083
lea esi, [esp + 0xa8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], 0x42a1c0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
push edx
push 0x43a5e0
call fcn.00415740
add esp, 8
mov dword [ebx + 0xb50], edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0x100
push esi
push 0x43a5e0
call fcn.00409710
mov ebp, eax
xor edx, edx
add esp, 0x10
cmp ebp, edx
mov dword [esp + 0x30], ebp
jle 0x40e04a
mov eax, dword [ebx + 0xbdc]
cmp eax, edx
jne 0x40dcea
mov ecx, ebp
mov edi, eax
shl ecx, 7
shl edi, 7
mov eax, ecx
add edi, 0x422170
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x18], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40dda3
cmp ebp, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
jle 0x40dda3
mov eax, dword [ebx + 0xbdc]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x40dd56
mov ecx, dword [esp + 0x24]
add ecx, edx
shl ecx, 7
lea edx, [esp + ecx + 0xac]
mov dword [esp + 0x20], edx
mov edx, 0x422174
mov edi, dword [esp + 0x20]
mov ecx, 3
mov esi, edx
xor ebp, ebp
repe cmpsw word [esi], word es:[edi]
je 0x40ddee
mov ecx, dword [esp + 0x34]
add edx, 0x80
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x40dd25
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40dd96
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], 0
add ecx, edx
shl ecx, 7
lea esi, [esp + ecx + 0xa8]
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
mov eax, dword [esp + 0x18]
shl edi, 7
add edi, 0x422170
mov ecx, 0x20
inc eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
inc edx
cmp edx, ebp
mov dword [esp + 0x10], edx
jl 0x40dcfa
mov ecx, dword [esp + 0x18]
mov esi, dword [ebx + 0xbdc]
add esi, ecx
mov dword [ebx + 0xb58], 1
mov eax, esi
mov dword [ebx + 0xbdc], esi
mov edi, eax
sub edi, ecx
cmp edi, eax
mov dword [esp + 0x10], edi
jge 0x40df94
mov ebp, edi
mov edx, edi
shl ebp, 7
add ebp, 0x422174
shl edx, 4
lea esi, [edx + ebx + 0xd1c]
mov dword [esp + 0x14], esi
jmp 0x40de08
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 1
jmp 0x40dd96
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 2]
push eax
call sub.WSOCK32.dll_ntohl
cmp dword [ebx + 0xc04], eax
jne 0x40de1f
mov dword [0x422118], edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x3c]
push 0x4219b8
push eax
call edi
mov edx, dword [esp + 0x44]
lea ecx, [esi - 0xa]
add esp, 0xc
mov dword [ecx], edx
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov dx, word [esp + 0x40]
mov eax, ebp
mov word [ecx + 8], dx
mov ecx, dword [eax]
mov dword [esi], ecx
mov dx, word [eax + 4]
lea eax, [ebp + 8]
mov word [esi + 4], dx
mov cl, byte [eax]
cmp cl, 0x14
jg 0x40de8a
movsx eax, byte [ebp + 0xb]
movsx edx, byte [ebp + 0xa]
push eax
push edx
movsx eax, byte [ebp + 9]
movsx ecx, cl
push eax
push ecx
lea edx, [esp + 0x70]
push str._d._d._d._d
push edx
call edi
add esp, 0x18
jmp 0x40dea0
push 0x10
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x70], 0
mov cl, byte [ebp + 0x18]
lea eax, [ebp + 0x18]
cmp cl, 0x14
jg 0x40ded2
movsx edx, byte [ebp + 0x1b]
movsx eax, byte [ebp + 0x1a]
push edx
push eax
movsx edx, byte [ebp + 0x19]
movsx eax, cl
push edx
push eax
lea ecx, [esp + 0x88]
push str._d._d._c_d
push ecx
call edi
add esp, 0x18
jmp 0x40defd
push 0x20
lea edx, [esp + 0x7c]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x8a]
add esp, 0xc
mov byte [ecx + ebx + 0xc12], al
mov byte [esp + 0x98], 0
lea edx, [esp + 0x78]
push 0x421e98
lea eax, [esp + 0x3c]
push edx
push eax
lea eax, [ebx + 0xa60]
push eax
call fcn.0040b7b0
mov edx, eax
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea esi, [ebp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
push 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, [ebx + 0xa60]
call sub.MFC42.DLL_CListCtrl::GetItemData
mov dword [ebp + 0x54], eax
mov ecx, dword [ebx + 0xa80]
push 0xffffffffffffffff
push 0
push 0x1026
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0xbdc]
inc eax
add esi, 0x10
add ebp, 0x80
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x40de00
mov eax, dword [ebx + 0xbdc]
mov edx, dword [esp + 0x18]
mov esi, eax
sub esi, edx
cmp esi, eax
jge 0x40e042
mov edi, esi
shl edi, 7
add edi, 0x422174
mov edx, edi
mov eax, dword [edx]
mov dword [0x422120], eax
mov cx, word [edx + 4]
mov word [0x422124], cx
mov ecx, ebx
call fcn.0040f9e0
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x40e02d
mov edx, eax
xor ecx, ecx
and edx, 0xff
mov cl, ah
push edx
xor edx, edx
mov dl, byte [esp + 0x26]
push ecx
shr eax, 0x18
push edx
push eax
lea eax, [esp + 0x60]
push str._d._d._d._d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x50]
push ecx
push 2
push esi
lea ecx, [ebx + 0xa60]
call fcn.0040b950
mov edx, dword [ebx + 0xa80]
push 0xffffffffffffffff
push 0
push 0x1026
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0xbdc]
inc esi
add edi, 0x80
cmp esi, eax
jl 0x40dfb5
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0xb54]
inc edi
add ebp, 0x104
add esi, 0x8000
add ecx, 0x100
cmp edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ecx
jb 0x40dc6a
mov ecx, ebx
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea esi, [ebx + 0xa60]
push 1
push 0
mov ecx, esi
call fcn.0040b510
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
lea eax, [ebx + 0xc08]
mov ecx, ebx
push eax
call fcn.0040fe20
mov dword [0x422118], eax
mov ecx, dword [ebx + 0xbdc]
cmp eax, ecx
jne 0x40e0c6
xor eax, eax
mov dword [0x422118], eax
push 2
push 2
push eax
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemState
mov ecx, dword [ebx + 0xba0]
mov edx, dword [ebx + 0x20]
push 0
push 0xea60
push ecx
push edx
mov dword [ebx + 0xb40], 0
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80098
ret