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

Disassembly:
sub esp, 0x98
push esi
mov esi, dword [esp + 0xa0]
test esi, esi
push edi
mov edi, ecx
je 0x42257d
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x42257d
mov ecx, dword [edi + 0x1110]
push ebx
push ebp
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.SkinControl.dll_public:_bool___thiscall_CEncircleBMP::GetEncircleInfo_struct_tagEncircleInfo__]
lea edx, [esp + 0x40]
push edx
lea ecx, [edi + 0x19e0]
call ebx
lea eax, [esp + 0x60]
push eax
lea ecx, [edi + 0x19a8]
call ebx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 0x1a18]
call ebx
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call sub.MFC71U.DLL_CPreviewDC::ScaleWindowExt
mov al, byte [edi + 0xf9]
test al, al
jne 0x422149
mov ecx, esi
imul ecx, ecx, 0x1c
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebp, 0x11d
jl 0x4220fb
mov ebp, 0x11d
mov al, byte [edi + 0xe1]
test al, al
jne 0x422117
lea eax, [ebp + 8]
mov byte [edi + 0xe1], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
push ebx
push ebp
lea ecx, [edi + 0x10f0]
call dword [sym.imp.SkinControl.dll_public:_void___thiscall_CSkinSplitter::SetSplitterRange_int__int_]
cmp dword [esp + 0x14], ebp
jge 0x422136
mov dword [esp + 0x14], ebp
add ebp, 8
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x1c], ebx
jle 0x422158
mov dword [esp + 0x1c], ebx
add ebx, 0xfffffff8
mov dword [esp + 0x14], ebx
jmp 0x422158
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
add eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xb0]
sub edx, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0xb08]
push eax
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x40
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov ebp, eax
lea eax, [edi + 0xfc]
test eax, eax
je 0x42219a
mov eax, dword [eax + 0x20]
mov ebx, dword [sym.imp.USER32.dll_DeferWindowPos]
push 0x115
push 0
push 0
push 0
lea edx, [esi - 0x5e]
push edx
push 0
push eax
push ebp
call ebx
lea eax, [edi + 0x168]
test eax, eax
je 0x4221c2
mov eax, dword [eax + 0x20]
push 0x115
push 0
push 0
push 0
lea ecx, [esi - 0x42]
push ecx
push 0
push eax
push ebp
call ebx
lea eax, [edi + 0x1d4]
test eax, eax
je 0x4221e4
mov eax, dword [eax + 0x20]
push 0x115
push 0
push 0
push 0
lea edx, [esi - 0x7a]
push edx
push 0
push eax
push ebp
call ebx
lea eax, [edi + 0x240]
test eax, eax
je 0x422206
mov eax, dword [eax + 0x20]
push 0x115
push 0
push 0
push 0
lea ecx, [esi - 0x26]
push ecx
push 0
push eax
push ebp
call ebx
mov eax, dword [edi + 0x3a4]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov eax, ebx
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 1
mov ecx, esi
sub ecx, eax
sub ecx, 0x384
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 2
test ecx, ecx
jbe 0x422264
cmp ecx, 0x24
jae 0x422272
xor edx, edx
cmp edx, ecx
sbb edx, edx
and edx, ecx
mov dword [esp + 0x2c], edx
jmp 0x42227e
mov dword [esp + 0x2c], 0x24
mov edx, dword [esp + 0x2c]
mov eax, 6
lea ecx, [edi + 0x384]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jmp 0x4222b0
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
jmp 0x4222b0
sub ebx, dword [esp + 0x78]
add ebx, edx
imul ebx, dword [esp + 0x28]
mov eax, esi
sub eax, ebx
sub eax, edx
sub eax, 0x64
test ecx, ecx
je 0x4222cb
mov ecx, dword [ecx + 0x20]
push 0x115
push 0
push 0
push 8
push eax
push 0
push ecx
push ebp
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
dec edx
add ecx, 0x6c
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jne 0x422297
mov ecx, dword [edi + 0x338]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [edi + 0x318]
test eax, eax
jne 0x422325
mov dword [esp + 0x10], eax
jmp 0x42232c
mov edx, dword [eax + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x54]
sub eax, edx
push 0x114
push eax
mov eax, dword [esp + 0x90]
mov edx, ecx
sub edx, eax
push edx
mov edx, dword [esp + 0x68]
sub edx, ebx
mov ebx, dword [esp + 0x3c]
sub eax, ecx
mov ecx, dword [esp + 0x20]
lea edx, [edx + ebx + 4]
push edx
lea edx, [eax + ecx - 0xd]
mov eax, dword [esp + 0x20]
push edx
push 0
push eax
push ebp
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x34]
sub edx, eax
mov eax, dword [esp + 0x60]
sub edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
mov edx, dword [esp + 0x6c]
sub esi, edx
sub esi, dword [esp + 0x70]
add eax, ecx
sub esi, dword [esp + 0x40]
lea ebx, [edi + 0xa40]
sub esi, dword [esp + 0x20]
mov ecx, ebx
push esi
push eax
mov eax, dword [esp + 0x28]
add edx, eax
push edx
call fcn.0043d940
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebx
call fcn.0043d6a0
test ebx, ebx
je 0x4223de
mov ebx, dword [ebx + 0x20]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x30]
push 0x114
push eax
push edx
mov edx, dword [esp + 0x28]
sub ecx, eax
add ecx, esi
mov esi, dword [sym.imp.USER32.dll_DeferWindowPos]
push ecx
add edx, 0xa
push edx
push 0
push ebx
push ebp
call esi
lea eax, [edi + 0x10f0]
test eax, eax
je 0x42241b
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push 0x114
sub edx, ecx
push edx
mov edx, dword [esp + 0x1c]
sub ebx, edx
push ebx
push ecx
push edx
push 0
push eax
push ebp
call esi
lea eax, [edi + 0xae8]
test eax, eax
je 0x42244b
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
push 0x114
sub ecx, ebx
push ecx
mov ecx, dword [esp + 0x40]
sub edx, ecx
push edx
mov edx, dword [esp + 0x3c]
push edx
push ecx
push 0
push eax
push ebp
call esi
lea eax, [edi + 0xca8]
test eax, eax
jne 0x422482
mov dword [esp + 0x10], eax
jmp 0x422489
mov eax, dword [eax + 0x20]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x44]
mov edx, ecx
sub edx, eax
sub edx, ebx
sub edx, dword [esp + 0x40]
sub edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
add edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x14]
push 0x114
push edx
sub ebx, dword [esp + 0x54]
sub ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ebx, edx
push ebx
add eax, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x58]
add eax, edx
push eax
push 0
push ecx
push ebp
call esi
mov edx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_LockWindowUpdate]
push edx
call esi
push ebp
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
push 0
call esi
mov ecx, dword [edi + 0x2cc]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0xa0]
add eax, ebp
mov ebp, dword [esp + 0x14]
cdq
sub eax, edx
push 0x115
sar eax, 1
push 0
push 0
push eax
mov eax, dword [esp + 0xa8]
sub eax, ecx
sub eax, ebp
add eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea ecx, [edi + 0x2ac]
call sub.MFC71U.DLL_COleControlSite::SetWindowPos
push 5
push 0
mov edx, dword [edi + 0x20]
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x98
ret 8