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

Disassembly:
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xb0]
test ebx, ebx
push esi
mov esi, ecx
je 0x420ce9
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x420ce9
mov ecx, dword [esi + 0x1978]
push ebp
push edi
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.SkinControl.dll_public:_bool___thiscall_CEncircleBMP::GetEncircleInfo_struct_tagEncircleInfo__]
lea edx, [esp + 0x60]
push edx
lea ecx, [esi + 0x24bc]
call edi
lea eax, [esp + 0x70]
push eax
lea ecx, [esi + 0x2484]
call edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x24f4]
call edi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call sub.MFC71U.DLL_CPreviewDC::ScaleWindowExt
mov al, byte [esi + 0xf9]
test al, al
jne 0x420739
mov ecx, ebx
imul ecx, ecx, 0x1c
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, ebx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp edi, 0x11d
jl 0x4206eb
mov edi, 0x11d
mov al, byte [esi + 0xe1]
test al, al
jne 0x420707
lea eax, [edi + 8]
mov byte [esi + 0xe1], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
push ebp
push edi
lea ecx, [esi + 0x1958]
call dword [sym.imp.SkinControl.dll_public:_void___thiscall_CSkinSplitter::SetSplitterRange_int__int_]
cmp dword [esp + 0x14], edi
jge 0x420726
mov dword [esp + 0x14], edi
add edi, 8
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x1c], ebp
jle 0x420748
mov dword [esp + 0x1c], ebp
add ebp, 0xfffffff8
mov dword [esp + 0x14], ebp
jmp 0x420748
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
add eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc0]
sub edx, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0xc48]
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 edi, eax
lea eax, [esi + 0xfc]
test eax, eax
je 0x42078a
mov eax, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_DeferWindowPos]
push 0x115
push 0
push 0
push 5
lea edx, [ebx - 0x3a]
push edx
push 0
push eax
push edi
call ebp
lea eax, [esi + 0x168]
test eax, eax
je 0x4207b2
mov eax, dword [eax + 0x20]
push 0x115
push 0
push 0
push 5
lea ecx, [ebx - 0x28]
push ecx
push 0
push eax
push edi
call ebp
lea eax, [esi + 0x1d4]
test eax, eax
je 0x4207d4
mov eax, dword [eax + 0x20]
push 0x115
push 0
push 0
push 5
lea edx, [ebx - 0x50]
push edx
push 0
push eax
push edi
call ebp
lea eax, [esi + 0x240]
test eax, eax
je 0x4207f6
mov eax, dword [eax + 0x20]
push 0x115
push 0
push 0
push 5
add ebx, 0xffffffea
push ebx
push 0
push eax
push edi
call ebp
mov ecx, dword [esi + 0x4e8]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0xbc]
mov eax, ebx
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 1
sub ecx, eax
sub ecx, 0x2bc
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 2
test ecx, ecx
jbe 0x42085f
cmp ecx, 0x24
jae 0x42086d
xor edx, edx
cmp edx, ecx
sbb edx, edx
and edx, ecx
mov dword [esp + 0x24], edx
jmp 0x420879
mov dword [esp + 0x24], 0x24
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xbc]
cmp ecx, 0x400
jne 0x420894
mov dword [esp + 0x24], 0
mov edx, dword [esp + 0x24]
lea eax, [esi + 0x4c8]
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], 6
jmp 0x4208c2
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x24]
sub ebx, dword [esp + 0x88]
add ebx, edx
imul ebx, dword [esp + 0x38]
neg ebx
mov eax, ebx
sub eax, edx
cmp ecx, 0x400
lea eax, [eax + ecx - 0x96]
jne 0x4208ef
sub ebx, edx
add ebx, 0x377
mov eax, ebx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4208fa
mov ecx, dword [ecx + 0x20]
push 0x115
push 0
push 0
push 9
push eax
push 0
push ecx
push edi
call ebp
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
dec edx
add ecx, 0x6c
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jne 0x4208b0
mov edx, dword [esi + 0x3a4]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x28]
lea eax, [esi + 0x384]
add ebx, 2
test eax, eax
jne 0x420952
xor ecx, ecx
jmp 0x420955
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
push 0x115
sub eax, edx
mov edx, dword [esp + 0x38]
push 0
push 0
lea eax, [eax + eax*2]
sub eax, edx
mov edx, dword [esp + 0xc8]
push ebx
lea eax, [eax + edx - 0x1f]
push eax
push 0
push ecx
push edi
call ebp
lea eax, [esi + 0x3f0]
test eax, eax
je 0x420991
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
push 0x115
sub ecx, edx
push 0
lea edx, [ecx + ecx - 0x18]
mov ecx, dword [esp + 0x3c]
push 0
sub edx, ecx
mov ecx, dword [esp + 0xc8]
push ebx
add edx, ecx
push edx
push 0
push eax
push edi
call ebp
lea eax, [esi + 0x45c]
test eax, eax
je 0x4209cc
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x34]
push 0x115
push 0
push 0
push ebx
sub ecx, dword [esp + 0x68]
sub ecx, edx
mov edx, dword [esp + 0xcc]
lea ecx, [ecx + edx - 0x11]
push ecx
push 0
push eax
push edi
call ebp
mov eax, dword [esi + 0x338]
lea edx, [esp + 0x98]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esi + 0x318]
test eax, eax
jne 0x420a1b
mov dword [esp + 0x10], eax
jmp 0x420a22
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0x44]
sub edx, ecx
mov ecx, dword [esp + 0xa0]
push 0x114
push edx
mov edx, ecx
sub edx, eax
push edx
mov edx, dword [esp + 0x58]
sub edx, ebx
mov ebx, dword [esp + 0x34]
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 edi
call ebp
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x70]
sub ecx, eax
sub ecx, edx
sub ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xbc]
add ecx, 5
push ecx
sub edx, dword [esp + 0x7c]
sub edx, dword [esp + 0x80]
sub edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
sub edx, ecx
inc edx
push edx
mov edx, dword [esp + 0x30]
add eax, edx
push eax
mov eax, dword [esp + 0x84]
lea ecx, [eax + ecx - 1]
lea ebx, [esi + 0xb80]
push ecx
mov ecx, ebx
call fcn.0043e890
lea edx, [esp + 0x80]
push edx
mov ecx, ebx
call fcn.0043e630
test ebx, ebx
je 0x420ae8
mov ebx, dword [ebx + 0x20]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
push 0x114
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
add eax, 0xa
push eax
push 0
push ebx
push edi
call ebp
mov eax, dword [esp + 0xbc]
cmp eax, 0x400
jne 0x420b43
lea eax, [esi + 0x1b68]
test eax, eax
je 0x420b2b
mov eax, dword [eax + 0x20]
push 0x114
push 0x41
push 0x10f
push 0xf
push 0xdc
push 0
push eax
jmp 0x420b6e
lea ecx, [esi + 0x1b68]
test ecx, ecx
je 0x420b50
mov ecx, dword [ecx + 0x20]
cdq
push 0x114
push 0x41
and edx, 3
push 0x10f
add eax, edx
push 0xf
sar eax, 2
sub eax, 0x28
push eax
push 0
push ecx
push edi
call ebp
lea eax, [esi + 0x1958]
test eax, eax
jne 0x420b7f
xor edx, edx
jmp 0x420b82
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push 0x114
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x1c]
sub ebx, ecx
push ebx
push eax
push ecx
push 0
push edx
push edi
call ebp
lea eax, [esi + 0xc28]
test eax, eax
je 0x420bb2
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
push 0x114
sub edx, ebx
push edx
mov edx, dword [esp + 0x1c]
sub edx, ecx
push edx
mov edx, dword [esp + 0x34]
push edx
push ecx
push 0
push eax
push edi
call ebp
lea eax, [esi + 0x1510]
test eax, eax
jne 0x420be9
mov dword [esp + 0x10], eax
jmp 0x420bf0
mov eax, dword [eax + 0x20]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x64]
mov edx, ecx
sub edx, eax
sub edx, ebx
sub edx, dword [esp + 0x60]
sub edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
add edx, dword [esp + 0xc0]
mov ebx, dword [esp + 0x14]
push 0x114
push edx
sub ebx, dword [esp + 0x74]
sub ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x38]
sub ebx, edx
sub eax, ecx
mov ecx, dword [esp + 0x30]
add ebx, 6
push ebx
add eax, dword [esp + 0x6c]
add eax, ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [eax + edx - 6]
mov edx, dword [esp + 0x20]
push ecx
push 0
push edx
push edi
call ebp
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_LockWindowUpdate]
push eax
call ebx
push edi
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
push 0
call ebx
mov edx, dword [esi + 0x2cc]
lea ecx, [esp + 0xa8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xac]
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 + 0xb0]
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 + 0xb8]
sub eax, ecx
sub eax, ebp
add eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea ecx, [esi + 0x2ac]
call sub.MFC71U.DLL_COleControlSite::SetWindowPos
push 5
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xa8
ret 8