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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f675
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x4d4028]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
and dword [esi + 0x3000], 0
call fcn.004900d8
call dword [0x4a2084]
fldz
mov dword [esp + 0x24], eax
fstp qword [esp + 0x2c]
mov al, byte [esi + 0x300c]
mov byte [esi + 0x300d], al
call fcn.0047d31b
cmp dword [esi + 0x2ff0], eax
jne 0x48866c
mov byte [esi + 0x300d], 1
lea ecx, [esi + 0x3014]
push ecx
lea ecx, [esi + 0x3010]
push ecx
lea eax, [esi + 0x300e]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push eax
movzx eax, byte [esi + 0x300d]
push eax
mov eax, dword [esp + 0x44]
lea ebx, [esp + 0x6c]
lea edi, [esp + 0x68]
lea edx, [esp + 0x60]
call fcn.00456027
cmp byte [esi + 0x300e], 0
je 0x4886cf
mov ecx, dword [esi + 0x2ff0]
push 0
push 0
push 0x40000
call fcn.004900ae
xor ebx, ebx
cmp dword [esp + 0x40], ebx
je 0x4886e3
cmp dword [esp + 0x44], ebx
je 0x4886e3
cmp dword [esp + 0x48], ebx
jne 0x488712
cmp byte [esi + 0x300d], 0
jne 0x488712
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x40]
push 1
xor ebx, ebx
lea edi, [esp + 0x68]
lea edx, [esp + 0x60]
call fcn.00456027
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x2c]
lea edi, [esp + 0x9c]
lea esi, [esp + 0x98]
lea edx, [esp + 0x94]
lea ecx, [esp + 0x90]
call fcn.0045613a
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x300d]
push eax
mov eax, dword [esp + 0x28]
call fcn.004561a3
cmp byte [ebp + 0x18], 0
mov dword [esi + 0x2ff4], eax
je 0x488777
cmp dword [esp + 0x84], ebx
je 0x488777
mov eax, 0xc354
jmp 0x488779
xor eax, eax
cmp byte [ebp + 0xc], 0
mov dword [esi + 0x14], eax
je 0x488792
cmp dword [esp + 0x88], ebx
je 0x488792
mov eax, 0xc352
jmp 0x488794
xor eax, eax
cmp byte [ebp + 0x10], 0
mov dword [esi + 0x18], eax
je 0x4887ad
cmp dword [esp + 0x8c], ebx
je 0x4887ad
mov eax, 0xc353
jmp 0x4887af
xor eax, eax
cmp byte [ebp + 0x10], 0
mov dword [esi + 0x1c], eax
je 0x4887c8
cmp dword [esp + 0x90], ebx
je 0x4887c8
mov eax, 0xc355
jmp 0x4887ca
xor eax, eax
cmp dword [esi + 0x3000], ebx
mov dword [esi + 0x20], eax
je 0x4887e5
cmp dword [esp + 0x94], ebx
je 0x4887e5
mov eax, 0xc351
jmp 0x4887e7
xor eax, eax
cmp byte [ebp + 0x14], 0
mov dword [esi + 0x24], eax
je 0x488800
cmp dword [esp + 0x98], ebx
je 0x488800
mov eax, 0xc350
jmp 0x488802
xor eax, eax
lea ecx, [esp + 0x58]
mov dword [esi + 0x28], eax
mov dword [esp + 0xac], 0x764a
mov dword [esp + 0xb0], 0x7647
mov dword [esp + 0xb4], 0x7649
mov dword [esp + 0xb8], 0x7648
mov dword [esp + 0xbc], 0x7646
mov dword [esp + 0xc0], 0x764b
call fcn.004904fe
push 0
mov dword [esp + 0xd4], 4
call dword [sym.imp.USER32.dll_GetDC]
push eax
lea ecx, [esp + 0x5c]
call fcn.00490504
and dword [esp + 0x1c], 0
lea ebx, [esi + 0xbc]
lea eax, [esi + 0x108]
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push dword [esp + eax*4 + 0x40]
push ebx
call fcn.00456313
test eax, eax
je 0x488a58
lea eax, [esp + 0x6c]
push eax
push 0x18
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x488a94
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
lea eax, [edi - 0x10]
push eax
lea eax, [esp + 0x5c]
call fcn.00431170
test eax, eax
je 0x488a98
lea eax, [edi - 0x10]
push eax
mov eax, ebx
call fcn.00431120
push edi
lea eax, [esp + 0x5c]
call fcn.00431170
test eax, eax
je 0x488a9c
push dword [esp + 0x74]
add ebx, 8
push dword [esp + 0x74]
push dword [esp + 0x64]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call fcn.0049050a
push edi
mov eax, ebx
call fcn.00431120
xor eax, eax
push eax
push dword [esp + 0x78]
mov ecx, 0xcc0020
push dword [esp + 0x78]
xor edx, edx
push eax
push eax
push edi
lea eax, [edi - 0x10]
call fcn.00430f10
fld qword [esp + 0x2c]
fmul qword [0x4b8c28]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x488959
fadd qword [0x4b8ba8]
jmp 0x48895f
fsub qword [0x4b8ba8]
call fcn.00492140
and dword [esp + 0x14], 0
cmp dword [esp + 0x70], 0
mov dword [esp + 0x20], eax
jle 0x488a37
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x488a25
push ebx
push dword [esp + 0x18]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_GetPixel]
movzx edx, ah
movzx ecx, al
shr eax, 0x10
test edx, edx
push 1
push dword [esp + 0x24]
mov dword [esp + 0x70], edx
movzx eax, al
fild dword [esp + 0x70]
jge 0x4889b6
fadd qword [0x4b8be0]
test ecx, ecx
fmul qword [0x4b8c78]
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
jge 0x4889ce
fadd qword [0x4b8be0]
test eax, eax
fmul qword [0x4b8c70]
mov dword [esp + 0x70], eax
faddp st(1)
fild dword [esp + 0x70]
jge 0x4889e8
fadd qword [0x4b8be0]
fmul qword [0x4b8c68]
faddp st(1)
call fcn.00492176
push eax
call dword [sym.imp.SHLWAPI.dll_ColorAdjustLuma]
movzx eax, al
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
push ebx
push dword [esp + 0x1c]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_SetPixel]
inc ebx
cmp ebx, dword [esp + 0x74]
jl 0x488984
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x70]
jl 0x488978
inc dword [esp + 0x1c]
add dword [esp + 0x28], 8
add dword [esp + 0x18], 0x10
add edi, 0x20
cmp dword [esp + 0x1c], 3
jge 0x488aa0
mov ebx, dword [esp + 0x18]
jmp 0x488889
push 0x6b
mov ebx, str..EmfBmpCaptionMgr.cpp
mov edi, 0x80004005
call fcn.0041e240
or dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x58]
call fcn.0049054c
mov eax, edi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x6f
jmp 0x488a5a
push 0x77
jmp 0x488a5a
push 0x7e
jmp 0x488a5a
cmp dword [esp + 0x4c], 0
jbe 0x488b22
and dword [esp + 0x1c], 0
lea ebx, [esi + 0x8c]
lea edi, [esi + 0x11c]
mov ecx, dword [esp + 0x1c]
push dword [esp + ecx*4 + 0x4c]
lea eax, [edi - 0x30]
push eax
call fcn.00456313
test eax, eax
je 0x488c09
lea eax, [esp + 0x6c]
push eax
push 0x18
push dword [edi - 0x2c]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x488c13
mov eax, dword [esp + 0x70]
mov dword [edi], eax
mov eax, dword [esp + 0x74]
mov dword [edi + 4], eax
push ebx
lea eax, [esp + 0x5c]
call fcn.00431170
test eax, eax
je 0x488c1d
push ebx
lea eax, [edi - 0x30]
call fcn.00431120
inc dword [esp + 0x1c]
add edi, 8
add ebx, 0x10
cmp dword [esp + 0x1c], 3
jl 0x488ab8
call dword [0x4a2058]
mov ecx, dword [esi + 0x2ff0]
push eax
call fcn.004907da
test eax, eax
je 0x488d6d
mov ecx, dword [esi + 0x2ff0]
call fcn.004904b0
and dword [esp + 0x18], 0
and dword [esp + 0x14], 0
cmp byte [ebp + 0xc], 0
je 0x488b64
mov ecx, 0x20000
test ecx, eax
jne 0x488b64
mov dword [esp + 0x14], ecx
cmp byte [ebp + 0x10], 0
je 0x488b77
mov ecx, 0x10000
test ecx, eax
jne 0x488b77
or dword [esp + 0x14], ecx
mov ebx, 0xc00000
test ebx, eax
je 0x488c27
cmp byte [ebp + 0xc], 0
jne 0x488ba3
cmp byte [ebp + 0x10], 0
jne 0x488ba3
cmp dword [esi + 0x3000], 0
jne 0x488ba3
cmp byte [ebp + 0x18], 0
je 0x488c27
mov eax, dword [esi + 0x2ff0]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x40]
push ecx
push dword [eax + 0x20]
call edi
mov ecx, dword [esi + 0x2ff0]
push 0x20
push dword [esp + 0x18]
push ebx
call fcn.004900ae
mov eax, dword [esi + 0x2ff0]
lea ecx, [esp + 0x2c]
push ecx
push dword [eax + 0x20]
call edi
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
sub eax, dword [esp + 0x2c]
sub edi, dword [esp + 0x4c]
add eax, dword [esp + 0x40]
sub edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x108]
sub edi, eax
add edi, dword [esp + 0x38]
jmp 0x488c5d
push 0x9e
jmp 0x488a5a
push 0xa2
jmp 0x488a5a
push 0xaa
jmp 0x488a5a
cmp dword [esp + 0x14], 0
je 0x488c41
mov ecx, dword [esi + 0x2ff0]
push 0x20
push dword [esp + 0x18]
push 0
call fcn.004900ae
mov eax, dword [esi + 0x2ff0]
lea ecx, [esp + 0x2c]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esi + 0x108]
neg edi
call fcn.004900d8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x28]
push ecx
call fcn.0047cf9a
push 1
push 0
lea eax, [esp + 0x28]
push eax
push 0
mov byte [esp + 0xe0], 5
push dword [esp + 0x38]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
push dword [esp + 0x20]
mov eax, dword [esi + 0x2ff0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [eax + 0x20]
call ebx
push dword [esp + 0x20]
mov eax, dword [esi + 0x2ff0]
push 0
push 0x80
push dword [eax + 0x20]
call ebx
mov ecx, dword [esi + 0x2ff0]
push 0x4ad29c
call fcn.004907da
test eax, eax
je 0x488ce4
mov eax, dword [esi + 0x2ff0]
mov ecx, dword [esi + 0x108]
mov dword [eax + 0xe8], ecx
mov eax, dword [esi + 0x108]
mov ebx, dword [esi + 0x2ff0]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call fcn.0045bf22
lea ecx, [esi + 0x120]
mov edx, dword [ecx]
xor ebx, ebx
add esp, 0x10
cmp edx, ebx
lea eax, [esi + 0x3018]
mov byte [eax], bl
push 0x16
jle 0x488d35
mov byte [eax], 1
mov eax, dword [esi + 0x2ff0]
add eax, 0x98
mov dword [eax + 0x50], edx
mov eax, dword [ecx]
sub eax, dword [esp + 0x34]
sub eax, edi
add eax, dword [esp + 0x3c]
jmp 0x488d3f
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
sub eax, edi
mov ecx, dword [esi + 0x2ff0]
push eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x20]
push eax
push ebx
push ebx
push ebx
call fcn.0049017a
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0], 4
call dword [0x4a2ee8]
push 0xa
pop eax
xor ecx, ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
lea eax, [esi + 0x14]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x18], eax
lea edi, [esi + 0x8b5]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp dword [esp + eax + 0x84], 0
je 0x488e2b
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x488e2b
push eax
push dword [esi + 0x2ff0]
lea eax, [esp + 0xa4]
push eax
lea ebx, [edi - 0x779]
mov edx, dword [ebx]
push 0x1000000b
push 0x4a4090
mov ecx, ebx
call dword [edx + 0x13c]
mov eax, dword [esp + 0x14]
push 1
push dword [esp + eax + 0x88]
push ebx
call fcn.0045823a
mov eax, dword [esp + 0x14]
push dword [esp + eax + 0xac]
mov byte [edi - 0x14], 0
push ebx
mov byte [edi - 1], 0
mov byte [edi], 0
call fcn.00456847
lea eax, [esi + 0x134]
cmp dword [eax], 0
jne 0x488e2b
mov ecx, dword [edi - 0x691]
mov dword [eax], ecx
mov ecx, dword [edi - 0x68d]
mov dword [eax + 4], ecx
add dword [esp + 0x14], 4
add dword [esp + 0x18], 4
add edi, 0x7c8
cmp dword [esp + 0x14], 0x18
jl 0x488d9f
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
mov dword [esi + 0x2ffc], ebx
je 0x488ee2
cmp byte [esi + 0x300d], bl
mov eax, dword [esp + 0x24]
je 0x488e6b
mov al, byte [eax + 0x3c0]
jmp 0x488e71
mov al, byte [eax + 0x3c1]
test al, al
je 0x488ee2
cmp dword [ebp + 0x1c], 1
jne 0x488ea0
mov edi, dword [esi + 0x108]
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub edi, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2ffc], eax
jns 0x488ea0
mov dword [esi + 0x2ffc], ebx
call fcn.004900d8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push ecx
call fcn.0047cf9a
mov eax, dword [eax]
push 1
lea ecx, [esi + 0x2ff8]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
lea ecx, [esp + 0x20]
call dword [0x4a2ee8]
cmp dword [esi + 0x2ffc], ebx
jne 0x488ee2
mov dword [esi + 0x2ffc], 2
xor edi, edi
jmp 0x488a69