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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x78
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x4bd447
cmp eax, dword [esi + 0x17d70]
jl 0x4bdd50
cmp eax, dword [esi + 0x17d74]
jg 0x4bdd50
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0x8c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ebp, eax
mov eax, dword [esp + 0x58]
sub ecx, ebx
sub edx, eax
push ecx
push edx
push edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
mov dword [esp + 0x34], eax
call edi
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x2c], eax
call fcn.004c5440
push eax
push ebp
call edi
push 1
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x13cc]
mov ecx, dword [esi + 0x1728]
or eax, 0x820
mov dword [esi + 0x13b0], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x4bd50a
or eax, 0x40000
mov dword [esi + 0x13b0], eax
lea edx, [esp + 0x58]
mov ecx, esi
push edx
push ebp
call fcn.004bfce0
mov eax, dword [esi + 0x17d68]
test eax, eax
je 0x4bdc1b
mov eax, dword [esp + 0x90]
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x48]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x1728]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4bd557
mov edx, dword [esi + 0x1380]
mov ecx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4bd56e
mov eax, dword [esi + 0x171c]
mov ecx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x48], ecx
lea ecx, [esi + 0x1668]
call fcn.00477a60
test eax, eax
je 0x4bd59e
mov eax, dword [esi + 0x166c]
mov ecx, dword [esi + 0x1718]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x50], eax
mov ecx, esi
call fcn.004c0e10
mov eax, dword [esi + 0x1384]
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1728]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x4bd5c6
add dword [esp + 0x48], eax
mov eax, dword [esi + 0x1388]
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
add edi, eax
push ecx
push edx
mov dword [esp + 0x50], edi
call ebx
mov eax, dword [esi + 0x1734]
test eax, eax
je 0x4bd5fe
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x15f8]
sub eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4bd60e
mov ecx, dword [esi + 0x15f8]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
lea edi, [esi + 0x17ef0]
push edx
push edi
call ebx
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x1728]
sub ebx, eax
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4bd683
mov edx, dword [esi + 0x170c]
mov eax, dword [esi + 0x17ef8]
sub eax, edx
mov edx, dword [edi]
sub eax, edx
mov edi, dword [esi + 0x170c]
cdq
idiv dword [esi + 0x17d68]
mov edx, dword [ecx + 0x3c]
add eax, edi
cmp eax, edx
jae 0x4bd671
mov dword [esp + 0x18], 1
jmp 0x4bd683
lea eax, [esp + 0x38]
mov ecx, esi
push eax
push ebx
push ebp
call fcn.004c1330
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
xor edx, edx
xor edi, edi
cmp eax, edx
mov dword [esi + 0x17f20], edx
mov dword [esi + 0x17f24], edx
je 0x4bd929
mov ecx, dword [esi + 0x170c]
mov edi, dword [esi + 0x17d68]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edx, dword [esi + 0x1728]
mov edx, dword [edx + 0x38]
add eax, ecx
cmp eax, edx
jl 0x4bd6c5
mov eax, edx
mov edx, dword [esi + 0x1728]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x3c]
cmp eax, edx
jg 0x4bd6d8
mov eax, edx
cmp dword [esp + 0x14], edx
jge 0x4bd6f5
mov eax, ebp
mov dword [esi + 0x17dbc], 1
cdq
idiv dword [esi + 0x17d84]
add eax, ecx
jmp 0x4bd6ff
mov dword [esi + 0x17dbc], 0
mov ebp, dword [esi + 0x17d70]
sub eax, ecx
sub edi, ebp
imul eax, edi
add eax, ecx
xor ecx, ecx
cmp ebx, eax
setl cl
xor eax, eax
mov dword [esi + 0x17f24], ecx
test ebp, ebp
setne al
test eax, eax
mov dword [esi + 0x17f20], eax
je 0x4bd73c
mov edx, dword [esi + 0x1720]
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x4bd758
mov eax, dword [esi + 0x1720]
mov edx, dword [esi + 0x1718]
mov ecx, dword [esp + 0x50]
add eax, edx
sub ecx, eax
mov dword [esp + 0x50], ecx
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push ecx
push edx
call edi
lea eax, [esp + 0x48]
push eax
lea eax, [esi + 0x17ef0]
push eax
call edi
mov eax, dword [esi + 0x17f20]
test eax, eax
je 0x4bd7f9
mov eax, dword [esi + 0x1720]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esi + 0x170c]
sub ecx, eax
add eax, ebp
mov dword [esp + 0x38], ecx
add eax, ecx
lea ecx, [esp + 0x38]
lea edx, [esi + 0x17f00]
push ecx
push edx
mov dword [esp + 0x48], eax
call edi
mov eax, dword [esi + 0x17d9c]
mov ebx, 1
test eax, eax
jne 0x4bd7e5
mov eax, dword [esi + 0x17d94]
test eax, eax
jne 0x4bd7e5
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4bd7e5
mov ebx, 4
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x3c]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.004be580
mov eax, dword [esi + 0x17f24]
test eax, eax
je 0x4bd87b
mov ecx, dword [esi + 0x1720]
mov edx, dword [esp + 0x50]
mov ebp, dword [esi + 0x170c]
lea eax, [ecx + edx]
mov dword [esp + 0x40], eax
sub eax, ecx
sub eax, ebp
lea ecx, [esi + 0x17f10]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push ecx
call edi
mov eax, dword [esi + 0x17d9c]
mov edi, 1
test eax, eax
jne 0x4bd867
mov eax, dword [esi + 0x17d94]
test eax, eax
jne 0x4bd867
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4bd867
mov edi, 4
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x3c]
push edi
push edx
push eax
mov ecx, esi
call fcn.004be580
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x170c]
sub ebx, edi
mov edi, dword [esi + 0x17d68]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edi, eax
mov eax, dword [esi + 0x1728]
add edi, ecx
mov edx, dword [eax + 0x38]
cmp edi, edx
jl 0x4bd8bd
mov edi, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x14], edi
cmp edi, eax
mov dword [esp + 0x1c], eax
jg 0x4bd8ce
mov edi, eax
mov eax, edi
mov edx, dword [esp + 0x1c]
sub eax, ecx
imul eax, dword [esi + 0x17d68]
add eax, ecx
cmp dword [esp + 0x14], edx
jge 0x4bd90d
mov edi, dword [esi + 0x17d84]
mov eax, ebp
cdq
idiv edi
mov dword [esi + 0x17dbc], 1
mov edi, eax
add edi, ecx
mov eax, edi
sub eax, ecx
imul eax, dword [esi + 0x17d84]
add eax, ecx
jmp 0x4bd917
mov dword [esi + 0x17dbc], 0
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
sub ebx, eax
xor edx, edx
mov dword [esp + 0x14], ebx
jmp 0x4bd92d
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x17d68]
mov dword [esp + 0x1c], edx
lea ebx, [eax - 1]
mov dword [esi + 0x17d74], ebx
mov ebx, dword [esi + 0x17d6c]
mov ebx, dword [esi + ebx*4 + 0x17750]
mov dword [esp + 0x20], ebx
xor ebx, ebx
cmp eax, edx
jle 0x4bdab8
lea eax, [esi + 0x17750]
mov dword [esp + 0x10], eax
cmp ebx, dword [esi + 0x17d70]
jl 0x4bda54
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bd97e
lea eax, [ecx + edi]
jmp 0x4bd996
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
mov eax, dword [eax + esi + 0x186c]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x4bd9ac
inc eax
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x50]
jg 0x4bda70
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
mov eax, dword [edx]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x185c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17d6c], ebx
jne 0x4bd9fa
lea ecx, [esp + 0x38]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x1c], 1
jmp 0x4bda44
mov eax, dword [esp + 0x94]
cmp eax, 0xffffffff
jne 0x4bda16
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4bda3c
cmp ebx, eax
je 0x4bda2e
lea ecx, [eax - 1]
cmp ebx, ecx
je 0x4bda2e
inc eax
cmp ebx, eax
je 0x4bda2e
cmp ebx, dword [esi + 0x17d74]
jne 0x4bda44
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004bdfe0
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x170c]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x17d68]
inc ebx
add edx, 4
cmp ebx, eax
mov dword [esp + 0x10], edx
jl 0x4bd965
jmp 0x4bda9c
lea edx, [ebx - 1]
lea eax, [esp + 0x38]
mov dword [esi + 0x17d74], edx
mov ebx, dword [esi + ebx*4 + 0x17750]
push eax
lea ecx, [ebx + ebx*4]
lea edx, [ebx + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x185c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bdab8
mov ecx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x7c]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004bdfe0
lea ecx, [esi + 0x1668]
call fcn.00477a60
test eax, eax
je 0x4bdbc4
mov eax, dword [esi + 0x166c]
mov ecx, dword [esi + 0x1384]
cdq
and edx, 3
xor ebx, ebx
add eax, edx
mov edx, dword [esi + 0x1728]
mov edi, eax
mov eax, dword [esp + 0x90]
sar edi, 2
mov eax, dword [eax + 8]
sub eax, ecx
cmp dword [edx + 0x24], ebx
je 0x4bdb01
sub eax, dword [esi + 0x1380]
mov edx, dword [esi + 0x17f24]
test edx, edx
je 0x4bdb17
mov dword [esp + 0x40], eax
sub eax, edi
mov dword [esp + 0x38], eax
jmp 0x4bdb49
mov edx, dword [esi + 0x170c]
sub edx, dword [esi + 0x1718]
add edx, ecx
mov ecx, dword [esp + 0x38]
add ecx, edx
mov dword [esp + 0x38], ecx
add ecx, edi
cmp ecx, eax
mov dword [esp + 0x40], ecx
jle 0x4bdb49
sub eax, ecx
push 0
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x17d78]
mov dword [esi + 0x17d9c], 0
cmp eax, 0xffffffff
jne 0x4bdb90
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4bdb90
mov eax, dword [esi + 0x17d98]
mov dword [esi + 0x17d9c], 1
test eax, eax
lea ebx, [edi + edi]
jne 0x4bdb90
mov ebx, edi
mov ecx, dword [esi + 0x1670]
push 0
push 0
push ecx
push edi
push 0
push ebx
lea edx, [esp + 0x50]
push 0
push edx
push ebp
lea ecx, [esi + 0x1668]
call fcn.004770b0
lea eax, [esp + 0x38]
lea ecx, [esi + 0x16c4]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17f28], 0xffffffff
je 0x4bdc1b
lea edx, [esp + 0x38]
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x17f28]
mov ecx, dword [esi + 0x1684]
push 0
push 0
push 0
push 0
push 0
add ecx, eax
push 0
lea edx, [esp + 0x80]
push 0
mov dword [esp + 0x8c], ecx
push edx
push ebp
lea ecx, [esi + 0x1680]
mov dword [esp + 0x8c], eax
call fcn.004770b0
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x4bdcf1
mov eax, dword [esp + 0x94]
cmp eax, 0xffffffff
jne 0x4bdc6d
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
sub eax, edx
mov edx, dword [esp + 0x98]
push ebp
sub ecx, ebx
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4bdcf1
mov eax, dword [esi + eax*4 + 0x17750]
push 0xcc0020
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
mov ecx, dword [edx + esi + 0x1860]
mov edi, dword [edx + esi + 0x1868]
lea eax, [edx + esi]
push ecx
sub edi, ecx
mov edx, dword [eax + 0x185c]
mov eax, dword [eax + 0x1864]
push edx
push ebp
sub eax, edx
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push eax
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push ecx
call edi
mov eax, dword [esi + 0x16cc]
cmp eax, 0xffffffff
je 0x4bdcf1
mov ecx, dword [esi + 0x16c8]
mov edx, dword [esi + 0x16c4]
mov ebx, dword [esi + 0x16d0]
push 0xcc0020
push ecx
push edx
sub ebx, ecx
push ebp
sub eax, edx
push ebx
push eax
push ecx
push edx
mov edx, dword [esp + 0xac]
push edx
call edi
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call edi
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call edi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x17d68]
mov edx, dword [esi + 0x17d74]
dec eax
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi + 0x17d70]
setne cl
xor edx, edx
mov dword [esi + 0x17f24], ecx
test eax, eax
setne dl
mov ecx, esi
mov dword [esi + 0x17f20], edx
call fcn.004c2860
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x78
ret 0x10