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

Disassembly:
sub esp, 0x94
cmp dword [esp + 0x9c], 0
mov eax, ecx
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x70], eax
push edi
mov dword [esp + 0x14], ebx
jge 0x49de5b
cmp dword [0x4de704], 0
jne 0x49de5b
cmp byte [eax + 0x6d], 0
jne 0x49de5b
mov byte [eax + 0x6d], 1
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
mov ebp, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
push eax
push ebx
call ebp
mov eax, dword [esp + 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push ebx
call ebp
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetViewportOrgEx]
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x88]
sub eax, dword [esp + 0x5c]
add eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
cdq
sub eax, edx
mov dword [esp + 0x2c], ecx
sar eax, 1
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x60]
add eax, dword [esp + 0x68]
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov dword [esp + 0x6c], edi
call fcn.0049d9c5
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov byte [esp + 0x1b], al
test al, al
je 0x49db6d
push 2
push esi
push 0x317
push dword [esp + 0x20]
call ebp
mov ecx, dword [esp + 0x24]
push 0
push edi
push ecx
push esi
call ebx
mov edi, dword [esp + 0x14]
push 0
push esi
push 0xf
push edi
call ebp
jmp 0x49db7b
mov edi, dword [esp + 0x14]
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_PrintWindow]
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x49dd86
push 1
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x49dd80
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49dd6d
lea eax, [esp + 0x90]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
lea eax, [edi + edx]
mov dword [esp + 0x28], eax
cmp eax, ecx
jle 0x49dc52
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x6c]
add eax, edi
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jle 0x49dc66
mov eax, ecx
mov ecx, dword [esp + 0x1c]
add edx, dword [esp + 0x70]
add ecx, edi
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x28], edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x1c]
push 0
add eax, edi
push eax
push dword [esp + 0x28]
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0xffffffffffffffe0
push ebx
call dword [sym.imp.USER32.dll_GetClassWord]
mov cx, word [0x4de700]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
test cx, cx
je 0x49dcc0
cmp ax, cx
je 0x49dce2
mov cx, word [0x4de6fc]
test cx, cx
je 0x49dcd1
cmp ax, cx
je 0x49dce2
mov cx, word [0x4de6f8]
test cx, cx
je 0x49dcfa
cmp ax, cx
jne 0x49dcfa
push 0
push esi
push 0x14
push ebx
call ebp
push SysReAllocStringLen
push esi
push 0x318
push ebx
call ebp
jmp 0x49dd52
mov eax, dword [esp + 0x38]
push 0
add eax, edi
push eax
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
cmp byte [esp + 0x1b], 0
push 0
push esi
je 0x49dd4b
push 0x14
push ebx
call ebp
push 0
push esi
push 0xf
push ebx
call ebp
mov eax, dword [esp + 0x1c]
push 0
add eax, edi
push eax
push dword [esp + 0x28]
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 2
push esi
push 0x317
push ebx
call ebp
jmp 0x49dd52
push ebx
call dword [sym.imp.USER32.dll_PrintWindow]
push 0
push edi
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edi, dword [esp + 0x14]
push 3
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x49db9f
mov ebx, dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + 0x2c]
mov edi, dword [eax + 0x3c]
test edi, edi
je 0x49de4a
nop
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
push 0x5594f0
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
jns 0x49ddc4
mov dword [esp + 0x14], 0
jmp 0x49de3f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49de3f
xor eax, eax
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x20]
mov dword [esp + 0x34], eax
push edx
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], eax
push edx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49de35
cmp word [esp + 0x20], 0
je 0x49de2f
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push 0
push 0
push 0
push edx
push esi
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push ecx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [edi + 4]
test edi, edi
jne 0x49dd9c
push 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push esi
call ebx
mov byte [ebp + 0x6d], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret