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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor ecx, ecx
mov eax, dword [esi]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], esp
mov edx, dword [eax + 0x5c8]
mov dword [ebp - 0x1c], esi
test edx, edx
mov dword [ebp - 4], 0
je 0x45740a
mov ecx, dword [esi + 0x3c0]
test ecx, ecx
je 0x4573bc
mov ecx, dword [edx + 0x90]
test ecx, ecx
je 0x4573bc
mov eax, dword [eax + 0x390]
lea ecx, [esi + 0x3bc]
push eax
call fcn.0045d900
mov ecx, dword [esi]
mov eax, dword [ecx + 0x5c8]
mov ecx, dword [eax + 0x8c]
test ecx, ecx
je 0x4573df
add eax, 0x48
lea ecx, [esi + 0x3bc]
push eax
call fcn.0045de80
jmp 0x4573ee
add eax, 0x48
lea ecx, [esi + 0x3bc]
push eax
call fcn.0045d7b0
mov eax, dword [esi]
mov ecx, dword [eax + 0x5c8]
mov edx, dword [ecx + 0x118]
mov edi, edx
mov ecx, dword [ecx + 0x11c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0x398]
mov ebx, dword [eax + 0x39c]
add eax, 0x398
or edx, ebx
jne 0x457439
test ecx, ecx
jl 0x457439
jg 0x457429
test edi, edi
jbe 0x457439
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
push 0x138b
call fcn.00456ce0
mov eax, dword [esi]
cmp dword [eax + 0x5cc], 5
je 0x4574f9
mov ecx, dword [eax + 0x3a0]
mov edx, dword [eax + 0x3a4]
or ecx, edx
je 0x457498
mov edx, dword [eax + 0x398]
mov dword [ebp - 0x90], edx
mov ecx, dword [eax + 0x39c]
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0x3a0]
mov dword [ebp - 0x88], edx
mov eax, dword [eax + 0x3a4]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0xffffffff
push ecx
jmp 0x4574ed
mov ecx, dword [eax + 0x5c8]
test ecx, ecx
je 0x4574f9
mov edx, dword [ecx + 0x70]
mov edi, dword [ecx + 0x74]
add ecx, 0x70
or edx, edi
je 0x4574f9
mov ecx, dword [eax + 0x5c8]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x90], edx
mov ecx, dword [ecx + 0x7c]
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0x5c8]
mov eax, dword [edx + 0x70]
mov dword [ebp - 0x88], eax
mov ecx, dword [edx + 0x74]
lea edx, [ebp - 0x90]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 0xffffffff
push edx
push 0x1389
mov ecx, esi
call fcn.00456ce0
mov eax, dword [esi + 0x3bc]
test eax, eax
je 0x457512
push 0
push 0
mov ecx, esi
call fcn.004581f0
test eax, eax
je 0x457529
mov eax, dword [esi]
mov eax, dword [eax + 0x5cc]
cmp eax, 3
je 0x457529
cmp eax, 5
mov edi, 0xffffff
jne 0x45752e
mov edi, 0xff0000
mov ecx, dword [esi + 0xc]
push ecx
call fcn.005669ff
push eax
lea ecx, [ebp - 0x78]
call fcn.0056cfa8
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0056d30d
mov edx, dword [esi + 0xc]
lea edi, [esi + 0x390]
push edi
push 0x49b
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi]
mov ecx, dword [esi + 0x394]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x20], ecx
call ebx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x398]
add edx, 2
add ecx, 2
mov dword [esi + 0x394], edx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x24]
mov dword [edi], ecx
mov ecx, dword [esi + 0x39c]
push edx
push eax
mov dword [ebp - 0x20], ecx
call ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add ecx, 0xfffffffe
add edx, 0xfffffffe
mov dword [esi + 0x398], ecx
mov dword [esi + 0x39c], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.CRgn.0
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0056d250
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push eax
call fcn.0056cc9d
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x74]
neg eax
sbb eax, eax
and eax, edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi]
mov eax, dword [edx + 0x5cc]
cmp eax, 3
je 0x457882
cmp eax, 5
je 0x457882
mov eax, dword [esi + 0x3bc]
test eax, eax
je 0x4576d7
push 0xffffff
lea ecx, [ebp - 0x18]
call fcn.0056d30d
mov eax, edi
mov ebx, dword [esi + 0x3bc]
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
test ebx, ebx
je 0x4576bd
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
mov ecx, esi
call fcn.004581f0
mov edx, dword [edi]
add edx, eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push eax
push ecx
mov ecx, esi
call fcn.004581f0
mov edx, dword [edi]
mov ecx, dword [ebp - 0x14]
add edx, eax
lea eax, [ebp - 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 0x5c], edx
and eax, ecx
mov ecx, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [ebx + 0x10]
jmp 0x45766e
mov ebx, vtable.CGdiObject.0
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0056d2a7
mov byte [ebp - 4], 3
jmp 0x4576dc
mov ebx, vtable.CGdiObject.0
mov edx, dword [esi]
mov eax, dword [edx + 0x5c8]
test eax, eax
je 0x45786a
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x60], ecx
push 1
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], eax
call fcn.0056ca22
push 0xff00ff
lea ecx, [ebp - 0x78]
call fcn.0056ca50
push 0xff00ff
push 1
push 0
lea ecx, [ebp - 0x4c]
call fcn.0056d2bd
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
push ecx
lea ecx, [ebp - 0x78]
call fcn.0056c9ad
push 0xff0000
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], eax
call fcn.0056d30d
mov edx, dword [esi]
mov byte [ebp - 4], 9
mov eax, dword [edx + 0x5c8]
mov edi, dword [eax + 0x5c]
test edi, edi
je 0x457840
test edi, edi
je 0x457840
mov eax, dword [edi]
test eax, eax
je 0x457838
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x457838
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004581f0
mov ecx, dword [esi + 0x390]
add ecx, eax
mov dword [ebp - 0x64], ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
add edx, ecx
mov ecx, dword [eax + 0x3c]
adc ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.004581f0
mov edx, dword [esi + 0x390]
mov ecx, dword [ebp - 0x74]
add edx, eax
lea eax, [ebp - 0x44]
neg eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x40]
sbb eax, eax
and eax, edx
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [edx + 0x30]
push ecx
mov ecx, esi
call fcn.004581f0
mov edx, dword [esi + 0x390]
add edx, eax
mov dword [ebp - 0x5c], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x2c]
push ecx
mov ecx, esi
mov edx, dword [eax + 0x28]
push edx
call fcn.004581f0
mov ebx, dword [esi + 0x390]
lea ecx, [ebp - 0x54]
add ebx, eax
mov eax, dword [esi + 0x394]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x78]
call fcn.0056cd61
mov edx, dword [esi + 0x39c]
lea ecx, [ebp - 0x78]
push edx
push ebx
call fcn.0056cdad
mov ebx, vtable.CGdiObject.0
mov edi, dword [edi + 0x1c]
jmp 0x457762
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x78]
push eax
call fcn.0056c9ad
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.0056d2a7
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.0056d2a7
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.0056d2a7
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 0xd
jmp 0x45789d
mov esi, vtable.CGdiObject.0
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0056d2a7
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.0056d2a7
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.0056d01a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret