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

Disassembly:
push 0xffffffffffffffff
push 0x4a2113
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
mov ebx, dword [esp + 0xd8]
mov eax, dword [ebx]
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
call dword [eax + 0x50]
mov ebp, dword [esi + 0x7c]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
and ebp, 0xa000
neg ebp
lea edx, [esp + 0x8c]
sbb ebp, ebp
push edx
neg ebp
push eax
mov dword [esp + 0xb4], ebp
call edi
lea ecx, [esp + 0x9c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x60], 0
call fcn.0047c961
xor eax, eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], vtable.CBitmap.0
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 4]
push eax
mov byte [esp + 0xe0], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0xa0]
call fcn.0047ce08
test eax, eax
je 0x485258
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x8c]
sub eax, ecx
mov ecx, dword [esp + 0x94]
sub ecx, edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x48]
call fcn.0047d105
test eax, eax
je 0x485258
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0xa0]
push edx
push eax
mov dword [esp + 0x68], 1
call fcn.0047d18e
lea ebx, [esp + 0x9c]
mov ecx, esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], ebx
call fcn.00474181
test ah, ah
js 0x4852a6
call fcn.00404682
mov ebx, dword [esp + 0x6c]
push 0
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [esp + 0x84]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x88]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x8c]
mov dword [ecx + 0xc], ebx
mov ebx, dword [esp + 0xa0]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [esp + 0xb4]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0xb8]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0xbc]
mov dword [ecx + 0xc], ebx
push esi
lea ecx, [esp + 0xc4]
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1e0]
mov eax, dword [0x4d0f44]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x30]
push 1
mov ecx, ebx
call fcn.0047c69e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x7c]
push ecx
push edx
call edi
test ebp, ebp
mov ecx, esi
je 0x4852bb
mov eax, dword [esi]
call dword [eax + 0x184]
add eax, dword [esp + 0x80]
mov dword [esp + 0x88], eax
jmp 0x4852ce
lea edx, [esp + 0x9c]
push edx
lea ecx, [esi + 0x598]
call fcn.0043bae0
jmp 0x48525c
mov edx, dword [esi]
call dword [edx + 0x188]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x84], eax
lea eax, [esi + 0x270]
push eax
push 0x4d13e0
lea ecx, [esi + 0x90]
push ecx
push 0x4d10c0
mov ecx, esi
call fcn.00492600
mov edi, eax
lea edx, [esi + 0x310]
push edx
push 0x4d1480
lea eax, [esi + 0x130]
push eax
push 0x4d1160
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], edi
call fcn.00492600
lea ecx, [esi + 0x3b0]
push ecx
push 0x4d1520
lea edx, [esi + 0x1d0]
push edx
push 0x4d12a0
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.00492600
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x590]
test eax, eax
jne 0x485351
mov dword [esp + 0x50], 0x4d1200
jmp 0x48535b
lea ecx, [esi + 0x450]
mov dword [esp + 0x50], ecx
test eax, eax
jne 0x485369
mov dword [esp + 0x54], 0x4d1340
jmp 0x485373
lea edx, [esi + 0x4f0]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x14]
lea eax, [edi + 0x14]
xor ecx, ecx
test edx, edx
mov edx, dword [0x4d0f38]
setne cl
mov dword [esp + 0x58], eax
lea eax, [edi + 0x88]
mov dword [esp + 0x58], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
cmp edx, ecx
je 0x4853a7
mov ecx, edi
mov dword [eax], edx
call fcn.00438c70
call fcn.00404682
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x38], edx
je 0x485401
mov eax, dword [esi + 0x6ac]
test eax, eax
je 0x4853d2
mov ecx, dword [0x4cd348]
mov eax, dword [0x4cd34c]
jmp 0x4853e3
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.0042e800
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x38]
push edx
push eax
push ecx
lea eax, [esp + 0xbc]
push eax
mov ecx, edi
call fcn.00438480
test eax, eax
je 0x4858e3
xor edi, edi
cmp ebp, edi
mov ecx, ebx
je 0x485415
mov edx, dword [ebx]
push 0x4d0f94
call dword [edx + 0x28]
jmp 0x48541f
mov eax, dword [ebx]
push 0x4d0fb4
call dword [eax + 0x28]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
cmp dword [ecx + 0x2c], edi
jle 0x485434
call fcn.00404682
mov dword [eax + 0x18], edi
mov eax, dword [esi + 0x5e8]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], eax
je 0x485756
lea ebx, [ebx]
mov eax, dword [esp + 0x40]
mov ebx, dword [eax + 8]
test ebx, ebx
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ebx
je 0x485756
lea eax, [ebx + 0x30]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x80], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x84], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x88], ecx
test byte [ebx + 0xc], 1
je 0x485524
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
mov edi, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
je 0x4854ea
test ebp, ebp
je 0x4854ea
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x28], eax
add eax, 5
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
xor edi, edi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xcc]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x485741
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x220]
jmp 0x485741
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xcc]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x485741
test dword [ebx + 0xc], 0x40000
mov eax, dword [0x4d0ff8]
je 0x48557f
test eax, eax
jne 0x48557f
mov ebx, 1
mov eax, dword [esi + 0x6ac]
test eax, eax
mov ecx, dword [esp + 0x1c]
je 0x485595
mov edx, dword [esi + 0x5d8]
xor eax, eax
cmp ecx, edx
sete al
mov dword [esp + 0x18], eax
jmp 0x4855c6
xor ebx, ebx
test eax, eax
je 0x48555e
mov eax, dword [esi + 0x590]
test eax, eax
jne 0x48555e
mov dword [esp + 0x18], ebx
jmp 0x4855c6
cmp ecx, dword [esi + 0x5d8]
je 0x4855a5
cmp ecx, dword [esi + 0x5d4]
jne 0x4855b4
mov eax, dword [esi + 0x5d4]
cmp eax, 0xffffffff
je 0x4855be
cmp ecx, eax
je 0x4855be
mov dword [esp + 0x18], 0
jmp 0x4855c6
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
lea eax, [esp + 0x7c]
push eax
call dword [edx + 0x58]
test eax, eax
je 0x485741
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
je 0x485711
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
xor edi, edi
test ecx, ecx
je 0x48560d
mov ecx, dword [eax + 0x44]
test ecx, ecx
jl 0x4856a3
mov edi, dword [0x4d1004]
jmp 0x4856a3
mov ecx, dword [esi + 0x6ac]
test ecx, ecx
je 0x485656
test ebx, ebx
je 0x48562d
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0x2c]
test eax, eax
jle 0x48562d
mov ebp, 1
jmp 0x4856a3
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x2c]
test eax, eax
jg 0x4856a3
test ebx, ebx
je 0x48564e
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x2c]
test eax, eax
jle 0x48564e
mov ebp, 1
jmp 0x4856a3
mov edi, dword [esp + 0x4c]
xor ebp, ebp
jmp 0x4856a3
test ebx, ebx
je 0x48566c
mov edi, dword [esp + 0x68]
mov ecx, dword [edi + 0x2c]
test ecx, ecx
jle 0x48566c
mov ebp, 1
jmp 0x485672
mov edi, dword [esp + 0x4c]
xor ebp, ebp
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4856a3
test ebp, ebp
jne 0x4856a3
test dword [eax + 0xc], 0x20000
jne 0x4856a3
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x2c]
test eax, eax
jle 0x4856a3
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x68]
test eax, eax
jne 0x4856a3
mov edi, dword [esp + 0x34]
cmp edi, dword [esp + 0x14]
je 0x485711
test edi, edi
je 0x485711
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xb0]
push eax
call fcn.00438640
mov ecx, dword [0x4d0f38]
push ecx
mov ecx, edi
call fcn.00428620
mov eax, dword [esi + 0x6ac]
test eax, eax
je 0x4856e3
mov ecx, dword [0x4cd348]
mov eax, dword [0x4cd34c]
jmp 0x4856f7
lea edx, [esp + 0xbc]
push edx
mov ecx, esi
call fcn.0042e800
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x38]
push edx
push eax
push ecx
lea eax, [esp + 0xbc]
push eax
mov ecx, edi
call fcn.00438480
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
neg ecx
push ebp
sbb ecx, ecx
push eax
mov eax, dword [esp + 0x44]
and ecx, ebx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x1f0]
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
inc ecx
test eax, eax
mov dword [esp + 0x1c], ecx
jne 0x485450
mov eax, dword [esi + 0x5f0]
cmp dword [esi + 0x5dc], eax
jl 0x48576e
mov dword [esi + 0x5dc], 0xffffffff
mov eax, dword [0x4d0ff8]
test eax, eax
je 0x485857
mov eax, dword [esi + 0x5dc]
test eax, eax
jl 0x48582b
mov ecx, dword [esi + 0x590]
test ecx, ecx
jne 0x48582b
cmp dword [0x4d1018], esi
jne 0x48582b
push eax
mov ecx, esi
call fcn.00484dc0
mov edi, eax
test edi, edi
je 0x48582b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x4c]
test eax, eax
je 0x48582b
lea eax, [edi + 0x30]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x2c], ecx
mov ecx, edi
mov dword [esp + 0x30], edx
call dword [eax + 0x34]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_InflateRect]
je 0x4857f6
push 1
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
mov eax, dword [0x4d0f44]
mov ebx, dword [esp + 0x10]
push eax
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.0048b6ed
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
call edi
mov eax, dword [0x4d0f44]
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0048b6ed
mov eax, dword [0x4d0ff8]
test eax, eax
je 0x485857
mov eax, dword [esi + 0x658]
test eax, eax
jl 0x485857
mov eax, dword [esi + 0x590]
test eax, eax
jne 0x485857
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1f4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48587e
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00438640
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4858d7
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x74]
push 0xcc0020
push edx
push esi
push edi
sub eax, edx
push eax
sub ecx, esi
push ecx
push edx
mov edx, dword [esp + 0x100]
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4858c9
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
call fcn.0047d18e
call fcn.00404682
mov edx, dword [esp + 0x38]
mov dword [eax + 0x18], edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], vtable.CGdiObject.0
mov byte [esp + 0xdc], 0
call fcn.0047d15c
lea ecx, [esp + 0x9c]
mov dword [esp + 0xdc], 0xffffffff
call fcn.0047ce86
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd0
ret 4