Function at 0x4089f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4113e8
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x408a13
xor eax, eax
jmp 0x408a16
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x408a33
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 8
mov ecx, ebx
call fcn.0040d6b0
test eax, eax
jne 0x408a50
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 8
push ebp
push esi
mov esi, dword [esp + 0x88]
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
mov dword [esp + 0x34], eax
mov edx, edi
mov dword [esp + 0x38], ecx
lea ebp, [esi + 0x1c]
mov eax, dword [edx]
push ebp
mov dword [esp + 0x40], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 0xc]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x5c], edx
mov dl, byte [esi + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x3c]
mov byte [esp + 0x68], dl
mov edx, dword [esi + 0x40]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov ecx, dword [esi]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x88], 0
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, eax
call sub.MFC42.DLL_CWnd::ClientToScreen
mov ecx, dword [ebx + 0x6c]
lea edx, [esp + 0x3c]
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x88]
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov ecx, ebx
mov dword [esp + 0x20], edx
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edx, dword [ebx + 0x68]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x464
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, edi
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x38]
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
mov eax, edi
mov dword [esi + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x50]
mov dword [esi + 0x18], eax
call fcn.0040ffea
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x28], ecx
mov cl, byte [esp + 0x68]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x70]
mov byte [esi + 0x34], cl
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi], ebx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040fe76
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 8