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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
push 0x4c
call fcn.004c8f3d
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x4963b5
mov dword [eax + 8], 1
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], ebp
mov byte [eax + 4], 0
mov dword [eax], vtable.ColorPalette::CRenderText.0
xor ecx, ecx
mov dword [eax + 0x40], 7
mov dword [eax + 0x3c], ebp
mov word [eax + 0x2c], cx
mov edi, eax
jmp 0x4963b7
xor edi, edi
push 0x1f
push 0x6e
push 6
push 0xa
lea edx, [edi + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 3
push 0x50ddb0
lea esi, [edi + 0x28]
call fcn.00401760
mov esi, dword [esp + 0xbc]
lea eax, [esp + 0x1c]
mov dword [edi + 0x48], 0x10
mov dword [edi + 0x44], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0x24], esi
mov dword [esp + 0x1c], edi
lea ebx, [esi + 0x28]
push eax
mov edi, ebx
call fcn.0048cbc0
push 0x30
call fcn.004c8f3d
add esp, 4
cmp eax, ebp
je 0x496435
mov dword [eax + 8], 1
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], ebp
mov dword [eax], vtable.ColorPalette::CRenderButton.0
mov dword [eax + 0x28], ebp
mov byte [eax + 4], 0
mov byte [eax + 0x2c], 0
mov edi, eax
jmp 0x496437
xor edi, edi
push 0x532ba8
mov edx, str.skinColorCloseBtn.png
call fcn.00405f10
push 0x19
push 0x1f9
push 0xa
push 0x1ea
lea ecx, [edi + 0xc]
push ecx
mov dword [edi + 0x28], eax
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x1c]
mov dword [edi + 0x24], esi
mov dword [edi + 0x1c], 1
mov dword [esp + 0x1c], edi
push edx
mov edi, ebx
call fcn.0048cbc0
push 0x532ba8
mov edx, str.skinColorPalette.png
call fcn.00405f10
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebp
je 0x496974
push 0x532ba8
mov edx, str.skin_select_color.png
call fcn.00405f10
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x496974
push 0x50
call fcn.004c8f3d
add esp, 4
cmp eax, ebp
je 0x4964d1
mov esi, eax
call fcn.0049de30
mov esi, dword [esp + 0xbc]
mov ebp, eax
mov dword [ebp + 0x24], esi
mov esi, ebp
call fcn.0049df20
mov eax, dword [ebp + 0x4c]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x28], edi
mov dword [eax + 0x28], ecx
lea edx, [esp + 0x18]
mov dword [ebp + 0x2c], 0x19
mov eax, dword [edi + 4]
push edx
xor esi, esi
push eax
mov dword [esp + 0x20], esi
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, esi
je 0x49650a
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], esi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, esi
je 0x49652b
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add ecx, 0x28
push ecx
add edx, 0xf
push edx
push 0x28
push 0xf
lea esi, [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0x10]
mov edx, ecx
shr edx, 8
movzx eax, dl
movzx edx, cl
shl edx, 8
shr ecx, 0x10
or eax, edx
movzx ecx, cl
shl eax, 8
or eax, ecx
lea ecx, [esp + 0xa0]
call fcn.0049d7e0
mov eax, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x496597
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4965bc
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4965e1
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x14]
test ecx, ecx
jge 0x4965f3
fadd qword [0x5125a8]
fmul qword [esp + 0xa0]
call fcn.004eadb0
fild dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov edi, eax
mov dword [ebp + 0x30], edi
test edx, edx
jge 0x496616
fadd qword [0x5125a8]
mov eax, dword [esp + 0x20]
fild dword [esp + 0x20]
test eax, eax
jge 0x496628
fadd qword [0x5125a8]
fmul qword [esp + 0xa8]
fsubp st(1)
call fcn.004eadb0
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x34], eax
test edx, edx
je 0x496661
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax - 0xd]
mov ecx, dword [esi]
lea esi, [eax + 0x1a]
push esi
lea ecx, [ecx + edi - 0xd]
lea esi, [ecx + 0x1a]
push esi
push eax
push ecx
add edx, 0xc
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x20]
push edx
mov edi, ebx
mov dword [ebp + 0x1c], 2
mov dword [esp + 0x24], ebp
call fcn.0048cbc0
push 0x532ba8
mov edx, str.skin_select_color.png
call fcn.00405f10
push 0x58
mov edi, eax
call fcn.004c8f3d
add esp, 4
test eax, eax
je 0x4966a0
call fcn.0049e000
mov esi, eax
jmp 0x4966a2
xor esi, esi
mov eax, dword [esp + 0xbc]
mov dword [esi + 0x24], eax
call fcn.0049e0e0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4966d6
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov ebp, dword [ebp + 0x18]
mov eax, dword [esp + 0x14]
add ebp, 0xa
lea edx, [ebp + 0x14]
push edx
add eax, 0xf
push eax
push ebp
push 0xf
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
fld qword [esp + 0xa8]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esp + 0xb0]
fstp qword [esp]
call fcn.00496120
fld qword [esp + 0xb0]
sub esp, 8
mov eax, esi
fstp qword [esp]
call fcn.004960b0
mov edx, dword [esi + 0x50]
mov dword [edx + 0x28], edi
lea eax, [esp + 0x20]
push eax
mov edi, ebx
mov dword [esi + 0x1c], 3
mov dword [esp + 0x24], esi
call fcn.0048cbc0
mov ecx, dword [esp + 0xbc]
mov edi, dword [esi + 0x18]
mov edx, dword [ecx + 0x10]
add edi, 0xa
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0xffff0000
mov dword [esp + 0x3c], 0xffeb6300
mov dword [esp + 0x40], 0xfff49400
mov dword [esp + 0x44], 0xfffcf000
mov dword [esp + 0x48], 0xff90c419
mov dword [esp + 0x4c], 0xff1ead37
mov dword [esp + 0x50], 0xff00a48e
mov dword [esp + 0x54], 0xff00a1ea
mov dword [esp + 0x58], 0xff00469c
mov dword [esp + 0x5c], 0xff1a1f87
mov dword [esp + 0x60], 0xff5a1e82
mov dword [esp + 0x64], 0xff960a82
mov dword [esp + 0x68], 0xffd7a506
mov dword [esp + 0x6c], 0xffe80074
mov dword [esp + 0x70], 0xff7b013c
mov dword [esp + 0x74], 0xff5b493d
mov dword [esp + 0x78], 0xff69390d
mov dword [esp + 0x7c], 0xff707070
mov dword [esp + 0x80], 0xff000000
mov dword [esp + 0x84], 0xfff68752
mov dword [esp + 0x88], 0xfff29dba
mov dword [esp + 0x8c], 0xff8758a0
mov dword [esp + 0x90], 0xff445a2c
mov dword [esp + 0x94], 0xff8aa6e5
mov dword [esp + 0x98], 0xff1fbcdd
mov dword [esp + 0x9c], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], 2
mov ebp, 0xf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xd
jmp 0x496884
mov edi, dword [esp + 0x2c]
mov ebp, 0xf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xd
jmp 0x496884
mov edi, dword [esp + 0x2c]
push 0x34
call fcn.004c8f3d
xor esi, esi
add esp, 4
cmp eax, esi
je 0x4968b7
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x30], esi
mov dword [eax + 8], 1
mov byte [eax + 4], 0
mov byte [eax + 0x2c], 0
mov dword [eax], vtable.ColorPalette::CRenderColorUser.0
mov esi, eax
mov eax, dword [esp + 0xbc]
mov dword [esi + 0x24], eax
lea eax, [edi + 0x23]
push eax
lea ecx, [ebp + 0x23]
push ecx
push edi
push ebp
lea edx, [esi + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
shr eax, 0x10
shl ecx, 8
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x1c], 5
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], esi
test eax, eax
jne 0x49690f
xor ecx, ecx
jmp 0x496917
mov ecx, dword [ebx + 0x14]
sub ecx, eax
sar ecx, 2
mov edi, dword [ebx + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x49692f
mov dword [edi], esi
add edi, 4
mov dword [ebx + 0x10], edi
jmp 0x49694d
cmp eax, edi
jbe 0x496938
call fcn.004c96d9
mov eax, dword [ebx]
push edi
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov eax, ebx
call fcn.0048cc20
add dword [esp + 0x18], 4
add ebp, 0x26
sub dword [esp + 0x1c], 1
jne 0x496880
add dword [esp + 0x2c], 0x26
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
jne 0x496860
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 4